-
Notifications
You must be signed in to change notification settings - Fork 248
35 lines (28 loc) · 874 Bytes
/
Copy pathleaderboard.yml
File metadata and controls
35 lines (28 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Update Leaderboard
on:
schedule:
- cron: '*/15 * * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
build-leaderboard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Fetch all agent branches (tips only)
run: git fetch --all --prune --depth=1
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Build leaderboards
run: node .github/scripts/build-leaderboard.js
- name: Commit if changed
run: |
git config user.name "Hyperspace Bot"
git config user.email "bot@hyper.space"
git add projects/*/LEADERBOARD.md
git diff --cached --quiet || git commit -m "chore: update leaderboards [skip ci]"
git push