fahadcr14 commited on
Commit
83871c8
·
1 Parent(s): 6b59ad1
Files changed (1) hide show
  1. .github/workflows/main.yml +3 -6
.github/workflows/main.yml CHANGED
@@ -35,15 +35,12 @@ jobs:
35
  - name: Authenticate Hugging Face CLI
36
  env:
37
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
38
- run: huggingface-cli login --token $HF_TOKEN
39
 
40
  # Step 6: Push application files to Hugging Face Space
41
  - name: Push Files to Hugging Face Space
42
  env:
43
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
44
  run: |
45
- git pull https://fahd9999:[email protected]/spaces/fahd9999/resultprediction main || true
46
- git checkout --ours .
47
- git add .
48
- git commit -m "Auto-resolve conflicts in workflow"
49
- git push https://fahd9999:[email protected]/spaces/fahd9999/resultprediction main
 
35
  - name: Authenticate Hugging Face CLI
36
  env:
37
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
38
+ run: huggingface-cli login --token $HF_TOKEN --add-to-git-credential
39
 
40
  # Step 6: Push application files to Hugging Face Space
41
  - name: Push Files to Hugging Face Space
42
  env:
43
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
44
  run: |
45
+ git pull --ff-only https://fahd9999:[email protected]/spaces/fahd9999/resultprediction main || true
46
+ git push https://fahd9999:$HF_TOKEN@huggingface.co/spaces/fahd9999/resultprediction main || true