From d273d61ee1842ad757731f79bc816418602e52c9 Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov <61896994+IgorTatarnikov@users.noreply.github.com> Date: Tue, 12 Nov 2024 10:51:55 +0000 Subject: [PATCH] Notify slack on scheduled test failure (#130) --- .github/workflows/test_and_deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index cb83784..d35dcb7 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -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