Skip to content

Commit f8745ef

Browse files
author
Angelo Buono
authored
Notify on slack when the dogfood_merge fails (#4834)
1 parent 648c88f commit f8745ef

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/dogfood.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,12 @@ jobs:
3434
# Use the output from the `dogfood` step
3535
- name: Get the name of the dogfood branch and its HEAD SHA1
3636
run: echo "The dogfood branch was `${{ steps.dogfood.outputs.dogfood-branch }}` and its HEAD SHA1 was `${{ steps.dogfood.outputs.sha1 }}`"
37+
# Notify on Slack
38+
- name: Notify failures on Slack
39+
if: failure()
40+
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
41+
env:
42+
SLACK_BOT_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).SLACK_BOT_TOKEN }}
43+
with:
44+
channel-id: squad-jvm-notifs
45+
slack-message: "Dogfood build for `${{ steps.dogfood.outputs.sha1 }}`: *failed*, see the logs at https://github.com/SonarSource/sonar-java/actions/workflows/dogfood.yml"

0 commit comments

Comments
 (0)