jatinmehra commited on
Commit
ba58f89
·
1 Parent(s): 5ba2999

fix: update workflow to temporarily replace README.md for Hugging Face and commit changes

Browse files
Files changed (1) hide show
  1. .github/workflows/Push_to_hf.yaml +5 -2
.github/workflows/Push_to_hf.yaml CHANGED
@@ -18,15 +18,18 @@ jobs:
18
 
19
  - name: Prepare Hugging Face README
20
  run: |
21
- cp README_hf.md README.md
 
22
 
23
  - name: Push to Hugging Face Space
24
  env:
25
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
26
- HF_USERNAME: jatinmehra
27
  run: |
28
  git config --global user.email "github-actions[bot]@users.noreply.github.com"
29
  git config --global user.name "github-actions[bot]"
30
  git remote remove origin || true
31
  git remote add origin "https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/jatinmehra/CRAWL-GPT-CHAT"
 
 
32
  git push origin main || (git branch -M main && git push -f origin main)
 
18
 
19
  - name: Prepare Hugging Face README
20
  run: |
21
+ # Temporarily replace README.md for Hugging Face
22
+ mv README_hf.md README.md
23
 
24
  - name: Push to Hugging Face Space
25
  env:
26
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
27
+ HF_USERNAME: jatinmehra # Replace with your Hugging Face username
28
  run: |
29
  git config --global user.email "github-actions[bot]@users.noreply.github.com"
30
  git config --global user.name "github-actions[bot]"
31
  git remote remove origin || true
32
  git remote add origin "https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/jatinmehra/CRAWL-GPT-CHAT"
33
+ git add README.md
34
+ git commit -m "Update Hugging Face README" || true
35
  git push origin main || (git branch -M main && git push -f origin main)