We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cc290e + 411e91e commit 82c7f7fCopy full SHA for 82c7f7f
.github/workflows/slack-notify.yml
@@ -0,0 +1,24 @@
1
+name: Slack Notification of CI Status
2
+
3
+on:
4
+ push:
5
+ branches: ["main"]
6
+ pull_request:
7
8
9
+jobs:
10
+ slackNotification:
11
+ name: Slack CI status message
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Slack Notify on Failure
15
+ if: ${{ failure() }}
16
+ id: slack
17
+ uses: slackapi/slack-github-action@v1.24.0
18
+ with:
19
+ channel-id: 'C067F896WG5'
20
+ slack-message: "Github CI Result: ${{ job.status }}\nGithub PR/Commit URL: ${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
21
+ env:
22
+ SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
23
+ # SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
24
+ # SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
0 commit comments