From e14f7966ba445719c58dea4d7c35483c5059a05d Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Mon, 1 Jul 2024 19:19:08 +0800 Subject: [PATCH] add slack job failure notification --- .gitea/workflows/test-fixturenet-plugeth.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitea/workflows/test-fixturenet-plugeth.yml b/.gitea/workflows/test-fixturenet-plugeth.yml index 071a433..b49d2aa 100644 --- a/.gitea/workflows/test-fixturenet-plugeth.yml +++ b/.gitea/workflows/test-fixturenet-plugeth.yml @@ -41,3 +41,20 @@ jobs: run: | PATH=$PATH:~/bin ./tests/fixturenet-plugeth-stack/run-test.sh + + - name: Notify Vulcanize Slack on CI failure + if: ${{ always() && github.ref_name == 'main' }} + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure + if: ${{ always() && github.ref_name == 'main' }} + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }}