Skip to content

Commit

Permalink
Merge pull request #48 from brainglobe/add-slack-notification
Browse files Browse the repository at this point in the history
Notify slack on scheduled test failure
  • Loading branch information
alessandrofelder authored Nov 11, 2024
2 parents 4462c4a + 5b453c3 commit 2f1934f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ jobs:
with:
python-version: ${{ matrix.python-version }}


- 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


build_sdist_wheels:
name: Build source distribution
needs: [test]
Expand Down

0 comments on commit 2f1934f

Please sign in to comment.