Skip to content

Commit

Permalink
add step to notify slack on failure for submit workflow
Browse files Browse the repository at this point in the history
Co-authored-by: basiliskus <[email protected]>
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: Sylvie <[email protected]>
  • Loading branch information
4 people committed Jan 10, 2025
1 parent 6b6ba9c commit 6cbe53e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/automated-staging-test-submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,20 @@ jobs:
if [ response != "Received" ] then;
echo "File did not send"
exit 0
exit 1
fi
done
- name: Send slack notification on test failure
if: failure()
uses: slackapi/[email protected]
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
text: "Submit Staging RS Integration Test Failed!: https://github.com/CDCgov/trusted-intermediary/actions/runs/${{ github.run_id }}"
- name: Clean up private key
if: always()
run: |
Expand Down

0 comments on commit 6cbe53e

Please sign in to comment.