notify slack on failure

This commit is contained in:
burnettk 2023-05-02 08:10:41 -04:00
parent e764638cc6
commit c0a4b26f4d
No known key found for this signature in database

View File

@ -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!"}' \