vikenkd commited on
Commit
1f5ad28
·
1 Parent(s): a13ba1d

[fix]: sync to hfspaces

Browse files
Files changed (1) hide show
  1. .github/workflows/sync_ahf.yaml +2 -7
.github/workflows/sync_ahf.yaml CHANGED
@@ -25,12 +25,7 @@ jobs:
25
  git config --global user.email "$EMAIL_USER"
26
  git config --global user.name "tph-kds"
27
 
28
- - name: Prepare remote and pull
29
  run: |
30
  git remote add hf https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME || true
31
- git fetch hf main || true
32
- git merge hf/main --allow-unrelated-histories --no-edit || true
33
-
34
- - name: Push to Hugging Face Space
35
- run: |
36
- git push hf main
 
25
  git config --global user.email "$EMAIL_USER"
26
  git config --global user.name "tph-kds"
27
 
28
+ - name: Force push to Hugging Face Space
29
  run: |
30
  git remote add hf https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME || true
31
+ git push hf main --force