Skip to content

Commit 880f803

Browse files
authored
Set Slack notification to trigger on failure (#38)
1 parent 0cff766 commit 880f803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/e2e-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
[ ${{needs.run_action.outputs.status}} = "pass" ] || exit 1
4343
- name: Notify slack on failure
44-
if: success() && github.ref == 'refs/heads/main'
44+
if: failure() && github.ref == 'refs/heads/main'
4545
env:
4646
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
4747
uses: voxmedia/github-action-slack-notify-build@v1

0 commit comments

Comments
 (0)