diff --git a/.github/workflows/monitoring.yml b/.github/workflows/monitoring.yml index 74ded940cf..281513c6dd 100644 --- a/.github/workflows/monitoring.yml +++ b/.github/workflows/monitoring.yml @@ -53,7 +53,7 @@ jobs: - name: Generate chains JSON run: yarn workspace arb-token-bridge-ui ${{ steps.config.outputs.generate_command }} env: - BATCH_POSTER_MONITORING: ${{ inputs.monitor == 'batch-poster' }} + INCLUDE_ARB_ONE_AS_CORE_CHAIN: ${{ inputs.monitor != 'retryable' }} - name: Copy chains JSON to Arbitrum Monitoring run: cp ./packages/arb-token-bridge-ui/public/${{ steps.config.outputs.config_file }} ./arbitrum-monitoring/packages/${{ inputs.monitor }}-monitor/config.json diff --git a/packages/arb-token-bridge-ui/scripts/generateCoreChainsToMonitor.ts b/packages/arb-token-bridge-ui/scripts/generateCoreChainsToMonitor.ts index 690a45d789..e9170e9b7c 100644 --- a/packages/arb-token-bridge-ui/scripts/generateCoreChainsToMonitor.ts +++ b/packages/arb-token-bridge-ui/scripts/generateCoreChainsToMonitor.ts @@ -24,9 +24,10 @@ async function generateCoreChainsToMonitor() { } // don't need to monitor arbOne chain in case of retryable-monitoring - const chains = process.env.BATCH_POSTER_MONITORING - ? [arbOneChain, novaChain] - : [novaChain] + const chains = + process.env.INCLUDE_ARB_ONE_AS_CORE_CHAIN === 'true' + ? [arbOneChain, novaChain] + : [novaChain] // make the chain data compatible with that required by the monitoring script const coreChainsToMonitor = chains.map(coreChain =>