Claude commited on
Commit
4ca818c
·
unverified ·
1 Parent(s): 5577c51

ci: use named remote for HuggingFace push

Browse files

Adds 'hf' remote before pushing to avoid inline credentials in the git push URL,
and uses || true to tolerate re-runs where the remote already exists.

https://claude.ai/code/session_017gXea9mxBQqDTAsSQd7aAq

.github/workflows/sync_to_huggingface.yml CHANGED
@@ -14,4 +14,6 @@ jobs:
14
  - name: Push to HuggingFace
15
  env:
16
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
17
- run: git push -f https://Ma-Ri-Ba-Ku:$HF_TOKEN@huggingface.co/spaces/Ma-Ri-Ba-Ku/Picarones main
 
 
 
14
  - name: Push to HuggingFace
15
  env:
16
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
17
+ run: |
18
+ git remote add hf https://Ma-Ri-Ba-Ku:$HF_TOKEN@huggingface.co/spaces/Ma-Ri-Ba-Ku/Picarones || true
19
+ git push -f hf main