david-oplatka commited on
Commit
d0be28c
·
unverified ·
1 Parent(s): 3a88bbb

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 (store token as a secret)
30
  env:
31
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
32
  run: |
33
- echo $HF_TOKEN | huggingface-cli login
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 }}