Add basic failure notifications for the Coverity workflow. (#10796)
Austin S. Hemmelgarn committed
Mar 23, 2021 at 08:51 UTC
04ce5769b82d1dc2b17b33eecfe23022febe5265
1 file changed
+14
.github/workflows/coverity.yml
+14
@@ -34,3 +34,17 @@ jobs:
34
COVERITY_SCAN_SUBMIT_MAIL: ${{ secrets.COVERITY_SCAN_SUBMIT_MAIL }}
35
run: |
36
./coverity-scan.sh --with-install
37
+ - name: Failure Notification
38
+ uses: rtCamp/action-slack-notify@v2
39
+ env:
40
+ SLACK_COLOR: 'danger'
41
+ SLACK_FOOTER:
42
+ SLACK_ICON_EMOJI: ':github-actions:'
43
+ SLACK_TITLE: 'Coverity run failed:'
44
+ SLACK_USERNAME: 'GitHub Actions'
45
+ SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
46
+ if: ${{
47
+ failure()
48
+ && github.event_name != 'pull_request'
49
+ && startsWith(github.ref, 'refs/heads/master')
50
+ }}