Skip to content

Commit

Permalink
notify CI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tnsardesai committed Sep 18, 2024
1 parent 2448bd8 commit 5c0c142
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/notify-ci-status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Notify CI status

on:
check_suite:
types: [completed]
status:

jobs:
call-workflow:
if: >-
(github.event.branches[0].name == github.event.repository.default_branch &&
(github.event.state == 'error' || github.event.state == 'failure')) ||
(github.event.check_suite.head_branch == github.event.repository.default_branch &&
github.event.check_suite.conclusion != 'success')
uses: Clever/ci-scripts/.github/workflows/reusable-notify-ci-status.yml@master
secrets:
CIRCLE_CI_INTEGRATIONS_URL: ${{ secrets.CIRCLE_CI_INTEGRATIONS_URL }}
CIRCLE_CI_INTEGRATIONS_USERNAME: ${{ secrets.CIRCLE_CI_INTEGRATIONS_USERNAME }}
CIRCLE_CI_INTEGRATIONS_PASSWORD: ${{ secrets.CIRCLE_CI_INTEGRATIONS_PASSWORD }}
SLACK_BOT_TOKEN: ${{ secrets.DAPPLE_BOT_TOKEN }}

0 comments on commit 5c0c142

Please sign in to comment.