Skip to content

Commit 8795078

Browse files
sutaakaropenshift-ci[bot]
authored andcommitted
Post notification about operator upgrade failure to a Slack channel
1 parent 725a614 commit 8795078

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/update-codeflare-operator.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,12 @@ jobs:
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
5959
working-directory: operator
60+
61+
- name: Post notification about failure to a Slack channel
62+
if: failure()
63+
uses: slackapi/slack-github-action@v1.24.0
64+
with:
65+
channel-id: "codeflare-nightlies"
66+
slack-message: "MCAD to CodeFlare operator upgrade action failed, <https://github.com/project-codeflare/multi-cluster-app-dispatcher/actions/workflows/update-codeflare-operator.yml|View workflow runs>"
67+
env:
68+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)