From 3d7d19966cc72c06e1e2de2b49e1a3f646e39d7f Mon Sep 17 00:00:00 2001 From: Dewansh Date: Tue, 8 Oct 2024 18:17:44 +0400 Subject: [PATCH] feat: report monitoring action failures to Slack (#1937) --- .github/workflows/monitoring.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/monitoring.yml b/.github/workflows/monitoring.yml index b40efc78ef..1a5107ff3e 100644 --- a/.github/workflows/monitoring.yml +++ b/.github/workflows/monitoring.yml @@ -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/slack-github-action@v1.27.0 + 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] }}