NEAR Protocol Rewards Tracking #174
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: NEAR Protocol Rewards Tracking | |
on: | |
schedule: | |
- cron: '*/5 * * * *' # Every 5 minutes | |
workflow_dispatch: # Manual trigger | |
push: | |
branches: [ main ] # Start on main branch updates | |
jobs: | |
track-metrics: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install SDK | |
run: npm install near-protocol-rewards | |
- name: Run Metrics Collection | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_REPO: ${{ github.repository }} | |
run: npx near-protocol-rewards track |