From c0a4b26f4db70dd59d7a0dabc53021f5df6f2e61 Mon Sep 17 00:00:00 2001 From: burnettk Date: Tue, 2 May 2023 08:10:41 -0400 Subject: [PATCH] notify slack on failure --- .github/workflows/slack_notify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/slack_notify.yml b/.github/workflows/slack_notify.yml index 4e2c690e..4db4f849 100644 --- a/.github/workflows/slack_notify.yml +++ b/.github/workflows/slack_notify.yml @@ -7,10 +7,10 @@ on: jobs: send_notification: - if: ${{ failure() }} runs-on: ubuntu-latest steps: - - name: Send Slack notification + - name: Notify on Backend Tests failure + if: ${{ github.event.workflow_run.conclusion != 'success' }} run: | curl -X POST -H 'Content-type: application/json' \ --data '{"text":"Workflow <${{ github.event.workflow_run.html_url }}|${{ github.event.workflow.name }}> failed!"}' \