Spaces:
Running
Running
| name: Sync LMArena Daily | |
| on: | |
| schedule: | |
| - cron: "17 9 * * *" # daily 09:17 UTC (adjust if you want) | |
| workflow_dispatch: {} | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements-sync.txt | |
| - name: Sync upstream data | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| python scripts/sync_lmarena.py | |
| - name: Commit changes (if any) | |
| run: | | |
| git config user.name "zen-sync-bot" | |
| git config user.email "actions@github.com" | |
| git add data/lmarena/leaderboard_table_latest.csv data/lmarena/sync_meta.json | |
| git diff --cached --quiet || git commit -m "Sync LMArena leaderboard (daily)" | |
| git push | |