Skip to content

Commit

Permalink
Notify slack on scheduled test failure (#221)
Browse files Browse the repository at this point in the history
* Notify slack on scheduled test failure (#60)

* Fixed cherry pick results
  • Loading branch information
IgorTatarnikov authored Nov 12, 2024
1 parent f2337b8 commit 9b4c836
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ jobs:
secret-codecov-token: ${{ secrets.CODECOV_TOKEN }}
use-xvfb: true

- name: Notify slack on scheduled failure
if: failure() && github.event_name == 'schedule'
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }} # required
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFYBOT_WEBHOOK_URL }} # required

test-with-conda:
# mainly checks conda installation of niftyreg, especially key on Silicon macs
needs: [linting, manifest]
Expand Down

0 comments on commit 9b4c836

Please sign in to comment.