Spaces:
Sleeping
Sleeping
[fix]: sync to hfspaces
Browse files
.github/workflows/sync_ahf.yaml
CHANGED
|
@@ -25,11 +25,11 @@ jobs:
|
|
| 25 |
git config --global user.email "$EMAIL_USER"
|
| 26 |
git config --global user.name "tph-kds"
|
| 27 |
|
| 28 |
-
- name:
|
| 29 |
run: |
|
| 30 |
git remote add hf https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME || true
|
| 31 |
git fetch hf main || true
|
| 32 |
-
git
|
| 33 |
|
| 34 |
- name: Push to Hugging Face Space
|
| 35 |
run: |
|
|
|
|
| 25 |
git config --global user.email "$EMAIL_USER"
|
| 26 |
git config --global user.name "tph-kds"
|
| 27 |
|
| 28 |
+
- name: Prepare remote and pull
|
| 29 |
run: |
|
| 30 |
git remote add hf https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME || true
|
| 31 |
git fetch hf main || true
|
| 32 |
+
git merge hf/main --allow-unrelated-histories --no-edit || true
|
| 33 |
|
| 34 |
- name: Push to Hugging Face Space
|
| 35 |
run: |
|