edjx22
commited on
Update main.yml
Browse files
.github/workflows/main.yml
CHANGED
|
@@ -14,11 +14,14 @@ jobs:
|
|
| 14 |
lfs: true
|
| 15 |
|
| 16 |
- name: Pull latest changes
|
| 17 |
-
run: git pull # Pull latest changes from remote before pushing
|
| 18 |
|
| 19 |
-
- name:
|
| 20 |
env:
|
| 21 |
HF_TOKEN: ${{ secrets.token }}
|
| 22 |
-
run: git push https://j565xu:$HF_TOKEN@huggingface.co/spaces/j565xu/test main
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
|
|
|
|
| 14 |
lfs: true
|
| 15 |
|
| 16 |
- name: Pull latest changes
|
| 17 |
+
run: git pull origin main # Pull latest changes from remote before pushing
|
| 18 |
|
| 19 |
+
- name: Force push to hub
|
| 20 |
env:
|
| 21 |
HF_TOKEN: ${{ secrets.token }}
|
| 22 |
+
run: git push --force https://j565xu:$HF_TOKEN@huggingface.co/spaces/j565xu/test main
|
| 23 |
+
|
| 24 |
+
- name: Check status after pull
|
| 25 |
+
run: git status
|
| 26 |
|
| 27 |
|