Skip to content

Commit b50c9b7

Browse files
authored
Merge pull request #1997 from hackforla/add-env-var-1990
Fix bug in Update Huggingface Dataset github workflow adding missing env variable
2 parents 1c26cd8 + 6a232ae commit b50c9b7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/hfUpdate.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Update Huggingface Dataset
22

33
on:
44
schedule: # once daily at 3:05 pm PST (23:05 UTC)
5-
- cron: '5 23 * * *'
5+
- cron: "5 23 * * *"
66

77
jobs:
88
run:
@@ -11,20 +11,20 @@ jobs:
1111
run:
1212
working-directory: scripts/
1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v2
14+
- name: Checkout code
15+
uses: actions/checkout@v2
1616

17-
- name: Set up Python environment
18-
uses: actions/setup-python@v2
19-
with:
20-
python-version: '3.11.x'
17+
- name: Set up Python environment
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: "3.11.x"
2121

22-
- name: Install dependencies
23-
run: pip install -r requirements.txt
22+
- name: Install dependencies
23+
run: pip install -r requirements.txt
2424

25-
- name: Setup environment
26-
run: |
27-
echo "HUGGINGFACE_LOGIN_TOKEN=${{ secrets.HUGGINGFACE_LOGIN_TOKEN }}" > .env
28-
29-
- name: Run script
30-
run: python updateHfDataset.py
25+
- name: Setup environment
26+
run: |
27+
echo "HUGGINGFACE_LOGIN_TOKEN=${{ secrets.HUGGINGFACE_LOGIN_TOKEN }}" > .env
28+
echo "VITE_ENV=${{ secrets.VITE_ENV }}" > .env
29+
- name: Run script
30+
run: python updateHfDataset.py

0 commit comments

Comments
 (0)