SIVANESHAKUMAR K S commited on
Commit
d05837b
·
unverified ·
1 Parent(s): 6e63363

Fix Git push command in deployment workflow

Browse files

Updated Git push command to use branch name directly.

.github/workflows/deploy-huggingface.yml CHANGED
@@ -21,6 +21,7 @@ jobs:
21
  - name: Checkout repository
22
  uses: actions/checkout@v4
23
  with:
 
24
  lfs: true
25
 
26
  - name: Configure Git
@@ -32,4 +33,4 @@ jobs:
32
  env:
33
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
34
  run: |
35
- git push https://Sivaneshakumar:${HF_TOKEN}@huggingface.co/spaces/Sivaneshakumar/sanjeevani-api HEAD:main --force
 
21
  - name: Checkout repository
22
  uses: actions/checkout@v4
23
  with:
24
+ fetch-depth: 0
25
  lfs: true
26
 
27
  - name: Configure Git
 
33
  env:
34
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
35
  run: |
36
+ git push https://Sivaneshakumar:${HF_TOKEN}@huggingface.co/spaces/Sivaneshakumar/sanjeevani-api main --force