Abeshith commited on
Commit
3530416
·
1 Parent(s): a17898e

Fix shallow clone issue for HF Spaces deployment

Browse files
Files changed (1) hide show
  1. .github/workflows/docker-build.yml +3 -2
.github/workflows/docker-build.yml CHANGED
@@ -76,5 +76,6 @@ jobs:
76
  run: |
77
  git config --global user.email "action@github.com"
78
  git config --global user.name "GitHub Action"
79
- git remote add spaces https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_SPACE_REPO}.git || git remote set-url spaces https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_SPACE_REPO}.git
80
- git push spaces main
 
 
76
  run: |
77
  git config --global user.email "action@github.com"
78
  git config --global user.name "GitHub Action"
79
+ git remote add spaces https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_SPACE_REPO}.git || true
80
+ git fetch spaces main || true
81
+ git push spaces main --force-with-lease