notify slack on failure
This commit is contained in:
parent
ce4c58dcd7
commit
7502034005
|
@ -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!"}' \
|
||||||
|
|
Loading…
Reference in New Issue