Notify CI failures to Slack (#5970)

This commit is contained in:
Saugat Pachhai
2021-05-05 18:37:33 +05:45
committed by GitHub
parent a234f53b76
commit c2f1a1e162
+15
View File
@@ -98,3 +98,18 @@ jobs:
with:
file: ./coverage.xml
fail_ci_if_error: false
notify:
if: github.ref == 'refs/heads/master' && failure()
needs:
- lint
- tests
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: 'CI Failed on master :boom:'
SLACK_TITLE: CI Status
SLACK_USERNAME: DVC-CI