Skip to content

Commit

Permalink
Notify slack on scheduled test failure (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Nov 11, 2024
1 parent 67f6c0a commit 56978da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ jobs:
python-version: ${{ matrix.python-version }}
secret-codecov-token: ${{ secrets.CODECOV_TOKEN }}

- 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


benchmarks:
name: Check benchmarks
runs-on: ubuntu-latest
Expand Down

0 comments on commit 56978da

Please sign in to comment.