Skip to content

Commit

Permalink
fix(chore): Send slack notifications only for open pr (#1526)
Browse files Browse the repository at this point in the history
  • Loading branch information
avattipalli authored Oct 31, 2024
1 parent c45dccb commit 3647900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/regression-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:

- name: Send slack notification
uses: slackapi/[email protected]
if: ${{ steps.pr_details.outputs.draft != 'true' && failure() }}
if: ${{ steps.pr_details.outputs.draft != 'true' && steps.pr_details.outputs.pr && failure() }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:

- name: Send slack notification
uses: slackapi/[email protected]
if: ${{ steps.pr_details.outputs.draft != 'true' && failure() }}
if: ${{ steps.pr_details.outputs.draft != 'true' && steps.pr_details.outputs.pr && failure() }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
Expand Down

0 comments on commit 3647900

Please sign in to comment.