Skip to content

Commit

Permalink
Store PR title in environment variable for consumption in script
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna committed Aug 26, 2024
1 parent a7e6aee commit c2931dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/baseimage-pr-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ jobs:

steps:
- run: |
if [[ "${{ github.event.pull_request.title }}" =~ "Update base image" ]]; then
if [[ "$PR_TITLE" =~ "Update base image" ]]; then
curl -d '{"key":"builder-base image"}' -X POST $SLACK_WEBHOOK
fi
exit 0
shell: bash
env:
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
PR_TITLE: ${{ github.event.pull_request.title }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
5 changes: 3 additions & 2 deletions .github/workflows/builder-baseimage-pr-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ jobs:

steps:
- run: |
if [[ "${{ github.event.pull_request.title }}" =~ "Update builder-base" ]]; then
if [[ "$PR_TITLE" =~ "Update builder-base" ]]; then
curl -d '{"key":"builder-base image"}' -X POST $SLACK_WEBHOOK
fi
exit 0
shell: bash
env:
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_URL }}
PR_TITLE: ${{ github.event.pull_request.title }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit c2931dd

Please sign in to comment.