Skip to content

Commit

Permalink
ci: Refresh the v2 leaderboard daily (#1711)
Browse files Browse the repository at this point in the history
* Create leaderboard_refresh.yaml

* Shorten and fix

* factory reset instead of normal
  • Loading branch information
orionw authored Jan 6, 2025
1 parent 222bb35 commit 25f4f61
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/leaderboard_refresh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Daily Space Rebuild
on:
schedule:
# Runs at midnight Pacific Time (8 AM UTC)
- cron: '0 8 * * *'
workflow_dispatch: # Allows manual triggering

jobs:
rebuild:
runs-on: ubuntu-latest
steps:
- name: Trigger Factory Rebuild
run: |
curl -X POST \
"https://huggingface.co/api/spaces/mteb/leaderboard_2_demo/restart?factory=true" \
-H "Authorization: Bearer ${{ secrets.HF_TOKEN }}"

0 comments on commit 25f4f61

Please sign in to comment.