Skip to content

Commit

Permalink
NEAR Protocol Rewards Tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
petersalomonsen committed Dec 11, 2024
1 parent 3defbb6 commit 2755099
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/near-rewards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: NEAR Protocol Rewards Tracking
on:
schedule:
- cron: '0 */12 * * *' # Every 12 hours
workflow_dispatch: # Manual trigger
push:
branches: [ main ] # Start on main branch updates

jobs:
calculate-rewards:
runs-on: ubuntu-latest
permissions:
contents: read
issues: read
pull-requests: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'

- name: Calculate Rewards
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}
run: npx near-protocol-rewards calculate

0 comments on commit 2755099

Please sign in to comment.