Automate Claim - Scheduled #24
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: Automate Claim - Scheduled | |
on: | |
schedule: | |
- cron: '0 0 1 * *' # Run on the first day of every month at 00:00 UTC | |
workflow_dispatch: | |
inputs: | |
network: | |
description: 'Network to run the automated claim task on' | |
required: true | |
default: 'avalanche' | |
jobs: | |
automated-claim: | |
environment: production | |
runs-on: ubuntu-latest | |
env: | |
PRIVATE_KEY: ${{ secrets.DEPLOYER_KEY }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --prefer-offline --frozen-lockfile | |
- name: Compile project with Hardhat | |
run: yarn hardhat compile | |
- name: Execute Automated Claim task | |
run: yarn hardhat automated-claim:all --network avalanche --load-from-subgraph true |