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

Fix shallow clone issue for HF Spaces deployment

Browse files
Files changed (1) hide show
  1. .github/workflows/docker-build.yml +3 -1
.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 --force
 
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