Spaces:
Runtime error
Runtime error
Fix shallow clone issue for HF Spaces deployment
Browse files
.github/workflows/docker-build.yml
CHANGED
|
@@ -65,6 +65,8 @@ jobs:
|
|
| 65 |
steps:
|
| 66 |
- name: Checkout repository
|
| 67 |
uses: actions/checkout@v4
|
|
|
|
|
|
|
| 68 |
|
| 69 |
- name: Push to HuggingFace Spaces
|
| 70 |
env:
|
|
@@ -75,4 +77,4 @@ jobs:
|
|
| 75 |
git config --global user.email "action@github.com"
|
| 76 |
git config --global user.name "GitHub Action"
|
| 77 |
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
|
| 78 |
-
git push spaces main
|
|
|
|
| 65 |
steps:
|
| 66 |
- name: Checkout repository
|
| 67 |
uses: actions/checkout@v4
|
| 68 |
+
with:
|
| 69 |
+
fetch-depth: 0
|
| 70 |
|
| 71 |
- name: Push to HuggingFace Spaces
|
| 72 |
env:
|
|
|
|
| 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
|