-
-
Notifications
You must be signed in to change notification settings - Fork 72
31 lines (26 loc) · 781 Bytes
/
hfUpdate.yml
File metadata and controls
31 lines (26 loc) · 781 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
name: Update Huggingface Dataset
on:
schedule: # once daily at 3:05 pm PST (23:05 UTC)
- cron: "5 23 * * *"
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/scripts/
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python environment
uses: actions/setup-python@v2
with:
python-version: "3.11.x"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Setup environment
run: |
echo "HUGGINGFACE_LOGIN_TOKEN=${{ secrets.HUGGINGFACE_LOGIN_TOKEN }}" > .env
echo "VITE_ENV=${{ secrets.VITE_ENV }}" >> .env
- name: Run script
run: python updateHfDataset.py