Monitor Core Retryables #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Monitor Core Retryables | |
on: | |
workflow_dispatch: | |
schedule: | |
# Run once a day at 08:03am GMT (https://github.com/OffchainLabs/arb-monitoring/blob/master/.github/workflows/retryables.yml#L5) | |
- cron: "3 8 * * *" | |
env: | |
NEXT_PUBLIC_INFURA_KEY: ${{ secrets.NEXT_PUBLIC_INFURA_KEY }} | |
RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_TOKEN }} | |
RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_CHANNEL }} | |
NOVA_MONITOR_RPC_URL: ${{ secrets.NOVA_MONITOR_RPC_URL }} | |
jobs: | |
run-alerting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Bridge | |
uses: actions/checkout@v4 | |
with: | |
repository: OffchainLabs/arbitrum-token-bridge | |
- name: Restore node_modules | |
uses: OffchainLabs/actions/node-modules/restore@main | |
- name: Install dependencies | |
run: yarn install | |
- name: Generate chains JSON | |
run: yarn workspace arb-token-bridge-ui generateCoreChainsToMonitor | |
env: | |
NOVA_MONITOR_RPC_URL: ${{ secrets.NOVA_MONITOR_RPC_URL }} | |
- name: Checkout Retryable-Tracker repository | |
uses: actions/checkout@v4 | |
with: | |
repository: OffchainLabs/arbitrum-monitoring | |
path: arbitrum-monitoring | |
- name: Copy chains JSON to Retryable-Tracker | |
run: cp ./packages/arb-token-bridge-ui/public/__auto-generated-core-chains.json ./arbitrum-monitoring/packages/retryable-monitor/config.json | |
- name: Setup Node for Retryable-Tracker | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
- name: Install dependencies for Retryable-Tracker | |
run: cd ./arbitrum-monitoring && yarn install | |
- name: Run alerting command | |
run: cd ./arbitrum-monitoring && yarn retryable-monitor --enableAlerting | |
env: | |
NODE_ENV: "CI" | |
RETRYABLE_MONITORING_SLACK_TOKEN: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_TOKEN }} | |
RETRYABLE_MONITORING_SLACK_CHANNEL: ${{ secrets.CORE_CHAIN_RETRYABLE_MONITORING_SLACK_CHANNEL }} | |
- name: Clean up | |
run: rm ./packages/arb-token-bridge-ui/public/__auto-generated-core-chains.json |