Skip to content

Commit

Permalink
feat: report monitoring action failures to Slack (#1937)
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanshparashar authored Oct 8, 2024
1 parent 9efdb20 commit 3d7d199
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,15 @@ jobs:
BATCH_POSTER_MONITORING_SLACK_CHANNEL: ${{ secrets[steps.config.outputs.slack_channel] }}
ASSERTION_MONITORING_SLACK_TOKEN: ${{ secrets[steps.config.outputs.slack_token] }}
ASSERTION_MONITORING_SLACK_CHANNEL: ${{ secrets[steps.config.outputs.slack_channel] }}
NEXT_PUBLIC_INFURA_KEY: ${{ secrets.NEXT_PUBLIC_INFURA_KEY }}
NOVA_MONITOR_RPC_URL: ${{ secrets.NOVA_MONITOR_RPC_URL }}
ARB_ONE_MONITOR_RPC_URL: ${{ secrets.ARB_ONE_MONITOR_RPC_URL }}

- name: Send Slack notification on failure
if: failure()
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets[steps.config.outputs.slack_channel] }}
slack-message: "Error: Monitoring run failed for ${{ inputs.monitor }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
env:
SLACK_BOT_TOKEN: ${{ secrets[steps.config.outputs.slack_token] }}

0 comments on commit 3d7d199

Please sign in to comment.