Skip to content

Commit

Permalink
Post to discord #incidents upon cron failure (#3307)
Browse files Browse the repository at this point in the history
### Description

Self explanatory
  • Loading branch information
yorhodes authored Feb 22, 2024
1 parent b03c901 commit 5d552be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,8 @@ jobs:

- name: Metadata Health Check
run: DEBUG=hyperlane yarn workspace @hyperlane-xyz/sdk run test:metadata

- name: Post to discord webhook if metadata check fails
if: failure()
run: |
curl -X POST -H 'Content-type: application/json' --data '{"content":"SDK metadata check failed, see ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' ${{ secrets.DISCORD_WEBHOOK_URL }}

0 comments on commit 5d552be

Please sign in to comment.