Skip to content

Automate Claim - Scheduled #24

Automate Claim - Scheduled

Automate Claim - Scheduled #24

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