notify slack on failure

This commit is contained in:
burnettk 2023-05-02 08:10:41 -04:00
parent ce4c58dcd7
commit 7502034005
1 changed files with 2 additions and 2 deletions

View File

@ -7,10 +7,10 @@ on:
jobs: jobs:
send_notification: send_notification:
if: ${{ failure() }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Send Slack notification - name: Notify on Backend Tests failure
if: ${{ github.event.workflow_run.conclusion != 'success' }}
run: | run: |
curl -X POST -H 'Content-type: application/json' \ curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Workflow <${{ github.event.workflow_run.html_url }}|${{ github.event.workflow.name }}> failed!"}' \ --data '{"text":"Workflow <${{ github.event.workflow_run.html_url }}|${{ github.event.workflow.name }}> failed!"}' \