Skip to content

check-roles

check-roles #278

Workflow file for this run

name: "check-roles"
on:
schedule:
- cron: "0 0 * * *" # every day at midnight
workflow_dispatch:
jobs:
check-roles:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
chain: [1,42161,137,100,43114,8453,56,42220,1101,10,59144]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- name: Setup repo
uses: ./.github/actions/setup-repo
with:
registry-token: ${{ secrets.GH_REGISTRY_ACCESS_TOKEN }}
- uses: nick-fields/retry@v2
with:
max_attempts: 5
command: yarn check-roles
timeout_minutes: 60
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }}
ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }}
ETH_NODE_URI_AVALANCHE: ${{ secrets.ETH_NODE_URI_AVALANCHE }}
ETH_NODE_URI_OPTIMISM: ${{ secrets.ETH_NODE_URI_OPTIMISM }}
ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }}
ETH_NODE_URI_GNOSIS: ${{ secrets.ETH_NODE_URI_GNOSIS }}
ETH_NODE_URI_BSC: ${{ secrets.ETH_NODE_URI_BSC }}
ETH_NODE_URI_CELO: ${{ secrets.ETH_NODE_URI_CELO }}
ETH_NODE_URI_POLYGON_ZKEVM: ${{ secrets.ETH_NODE_URI_POLYGON_ZKEVM }}
ETH_NODE_URI_BASE: ${{ secrets.ETH_NODE_URI_BASE }}
ETH_NODE_URI_LINEA: ${{ secrets.ETH_NODE_URI_LINEA }}
CHAIN_IDS: ${{ matrix.chain }}
- name: Notify Discord on Failure
if: failure()
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_ROLES_ON_CHAIN }}
uses: Ilshidur/action-discord@master
with:
args: "Failed to check roles for chain ${{ matrix.chain }} (https://github.com/AngleProtocol/angle-governance/actions/runs/${{ github.run_id }})"