david-oplatka commited on
Commit
9b72910
·
unverified ·
1 Parent(s): dc0f4e3

Update update_space_2.yaml

Browse files
.github/workflows/update_space_2.yaml CHANGED
@@ -18,7 +18,14 @@ jobs:
18
  with:
19
  fetch-depth: 0
20
  lfs: true
21
-
 
 
 
 
 
 
 
22
  - name: Configure Git
23
  run: |
24
  git config --global user.email "[email protected]"
@@ -28,8 +35,6 @@ jobs:
28
  run: pip install huggingface_hub
29
 
30
  - name: Login to Hugging Face (use secret token)
31
- env:
32
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
33
  run: |
34
  huggingface-cli login --token $HF_TOKEN
35
 
 
18
  with:
19
  fetch-depth: 0
20
  lfs: true
21
+
22
+ - name: Configure SSH known hosts
23
+ env:
24
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
25
+ run: |
26
+ mkdir -p ~/.ssh
27
+ ssh-keyscan hf.co >> ~/.ssh/known_hosts
28
+
29
  - name: Configure Git
30
  run: |
31
  git config --global user.email "[email protected]"
 
35
  run: pip install huggingface_hub
36
 
37
  - name: Login to Hugging Face (use secret token)
 
 
38
  run: |
39
  huggingface-cli login --token $HF_TOKEN
40