Spaces:
Runtime error
Runtime error
Fix shallow clone issue for HF Spaces deployment
Browse files
.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 ||
|
| 80 |
-
git
|
|
|
|
|
|
| 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
|