Skip to content

Commit 39e9422

Browse files
sutaakaropenshift-merge-bot[bot]
authored andcommitted
Send notification on Slack if e2e fails on push event
1 parent 0acdfde commit 39e9422

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/e2e_tests.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,12 @@ jobs:
9393
retention-days: 10
9494
path: |
9595
${{ env.CODEFLARE_TEST_OUTPUT_DIR }}/**/*.log
96+
97+
- name: Post notification about failure to a Slack channel in case of push event
98+
if: failure() && github.event_name == 'push'
99+
uses: slackapi/[email protected]
100+
with:
101+
channel-id: "codeflare-nightlies"
102+
slack-message: "e2e test on push failed, <https://github.com/project-codeflare/codeflare-operator/actions/workflows/e2e_tests.yaml|View workflow runs>"
103+
env:
104+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)