Spaces:
Sleeping
Sleeping
Update update_space_2.yaml
Browse files
.github/workflows/update_space_2.yaml
CHANGED
@@ -26,12 +26,14 @@ jobs:
|
|
26 |
- name: Install huggingface_hub
|
27 |
run: pip install huggingface_hub
|
28 |
|
29 |
-
- name: Login to Hugging Face (
|
30 |
env:
|
31 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
32 |
run: |
|
33 |
-
|
34 |
-
|
|
|
|
|
35 |
- name: Get Space Name
|
36 |
id: get_space_name
|
37 |
run: echo ${{ matrix.space_name }}
|
|
|
26 |
- name: Install huggingface_hub
|
27 |
run: pip install huggingface_hub
|
28 |
|
29 |
+
- name: Login to Hugging Face (use secret token)
|
30 |
env:
|
31 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
32 |
run: |
|
33 |
+
git config --global user.email "[email protected]"
|
34 |
+
git config --global user.name "GitHub Actions"
|
35 |
+
huggingface-cli login --token ${{ secrets.HF_TOKEN }}
|
36 |
+
|
37 |
- name: Get Space Name
|
38 |
id: get_space_name
|
39 |
run: echo ${{ matrix.space_name }}
|