Skip to content

Commit 297766a

Browse files
authored
Report build failures to Slack (#2)
1 parent 6f56f05 commit 297766a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,15 @@ jobs:
3636
- name: Run unit tests
3737
run: make testvv
3838
env:
39+
40+
- name: Report failures to Slack
41+
if: ${{ always() && github.ref == 'refs/heads/main' }}
42+
uses: ravsamhq/notify-slack-action@v2
43+
with:
44+
notification_title: "It seems that my sole purpose in this dismal existence is to spread the gloomy news of broken code and shattered dreams."
45+
footer: "I think you ought to know I'm feeling very depressed."
46+
status: ${{ job.status }}
47+
notify_when: 'failure'
48+
env:
49+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_REPORTING_WEBHOOK }}
3950
TEST_FLAGS: -race

0 commit comments

Comments
 (0)