notify on more things and include conclusion

This commit is contained in:
burnettk 2023-05-02 08:39:13 -04:00
parent 7502034005
commit 046ab04745

View File

@ -2,7 +2,7 @@ name: Slack Notification
on:
workflow_run:
workflows: ["Backend Tests"]
workflows: ["Backend Tests", "Frontend Tests", "Docker Image For Main Builds", "Release Builds"]
types: [completed]
jobs:
@ -13,5 +13,5 @@ jobs:
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!"}' \
--data '{"text":"spiff-arena workflow <${{ github.event.workflow_run.html_url }}|${{ github.event.workflow.name }}> ended with conclusion ${{github.event.workflow_run.conclusion}}!"}' \
${{ secrets.SLACK_WEBHOOK_URL }}