Spaces:
Running
Running
Claude commited on
fix: HF sync — utiliser --force au lieu de --force-with-lease
Browse filesLe sync GitHub→HuggingFace est un miroir unidirectionnel : GitHub est
la source unique, HuggingFace ne reçoit jamais de commits directs.
--force-with-lease échoue avec "stale info" car le ref distant HF
ne correspond pas à ce que le CI connaît. --force est correct ici.
https://claude.ai/code/session_01UtY7QGAcj2M7pAyU2nvzvn
.github/workflows/sync_to_huggingface.yml
CHANGED
|
@@ -18,4 +18,4 @@ jobs:
|
|
| 18 |
HF_SPACE: ${{ vars.HF_SPACE || 'Ma-Ri-Ba-Ku/Picarones' }}
|
| 19 |
run: |
|
| 20 |
git remote add hf "https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_SPACE}" || true
|
| 21 |
-
git push --force
|
|
|
|
| 18 |
HF_SPACE: ${{ vars.HF_SPACE || 'Ma-Ri-Ba-Ku/Picarones' }}
|
| 19 |
run: |
|
| 20 |
git remote add hf "https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_SPACE}" || true
|
| 21 |
+
git push --force hf main
|