aditya.bhendavadekar
commited on
Commit
•
e4e13c5
1
Parent(s):
3d271fe
Update sync_to_hugging_face_hub.yml
Browse files
.github/workflows/sync_to_hugging_face_hub.yml
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
name: Sync to Hugging Face hub
|
2 |
-
|
3 |
on:
|
4 |
push:
|
5 |
branches: [main]
|
@@ -14,10 +13,11 @@ jobs:
|
|
14 |
- uses: actions/checkout@v2
|
15 |
with:
|
16 |
fetch-depth: 0
|
|
|
|
|
|
|
|
|
17 |
- name: Push to hub
|
18 |
env:
|
19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
-
run: git
|
21 |
-
|
22 |
-
- name: Pull from remote
|
23 |
-
run: git pull origin main
|
|
|
1 |
name: Sync to Hugging Face hub
|
|
|
2 |
on:
|
3 |
push:
|
4 |
branches: [main]
|
|
|
13 |
- uses: actions/checkout@v2
|
14 |
with:
|
15 |
fetch-depth: 0
|
16 |
+
- name: Add remote
|
17 |
+
env:
|
18 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
19 |
+
run: git remote add space https://adi1193:$HF_TOKEN@huggingface.co/spaces/adi1193/postquest
|
20 |
- name: Push to hub
|
21 |
env:
|
22 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
23 |
+
run: git push --force https://adi1193:$HF_TOKEN@huggingface.co/spaces/adi1193/postquest main
|
|
|
|
|
|