-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1003 Bytes
/
daily-sync.yml
File metadata and controls
46 lines (37 loc) · 1003 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
36
37
38
39
40
41
42
43
44
45
name: Daily modal.json sync
on:
# schedule:
# # Daily at 06:15 UTC
# - cron: "15 6 * * *"
workflow_dispatch: {}
permissions:
contents: read
jobs:
sync:
runs-on: ubuntu-latest
timeout-minutes: 90
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Setup uv
uses: astral-sh/setup-uv@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Authenticate to Hugging Face
run: |
if [ -z "$HF_TOKEN" ]; then
echo "HF_TOKEN secret is not set" >&2
exit 1
fi
hf auth login --token "$HF_TOKEN"
- name: Run sync (create PR)
run: |
python scripts/sync_modal.py --workdir workdir --write --create-pr