Update main.yml
Browse files- .github/workflows/main.yml +15 -3
.github/workflows/main.yml
CHANGED
@@ -2,8 +2,6 @@ name: Sync to Hugging Face hub
|
|
2 |
on:
|
3 |
push:
|
4 |
branches: [main]
|
5 |
-
|
6 |
-
# to run this workflow manually from the Actions tab
|
7 |
workflow_dispatch:
|
8 |
|
9 |
jobs:
|
@@ -14,7 +12,21 @@ jobs:
|
|
14 |
with:
|
15 |
fetch-depth: 0
|
16 |
lfs: true
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
env:
|
19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
run: git push https://reichaves:$HF_TOKEN@huggingface.co/spaces/reichaves/chatbot-websites-llama-3.2-90b-text-preview-Brazil main
|
|
|
2 |
on:
|
3 |
push:
|
4 |
branches: [main]
|
|
|
|
|
5 |
workflow_dispatch:
|
6 |
|
7 |
jobs:
|
|
|
12 |
with:
|
13 |
fetch-depth: 0
|
14 |
lfs: true
|
15 |
+
|
16 |
+
- name: Configure Git
|
17 |
+
run: |
|
18 |
+
git config user.name github-actions
|
19 |
+
git config user.email github-actions@github.com
|
20 |
+
|
21 |
+
- name: Fetch from Hugging Face
|
22 |
+
env:
|
23 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
24 |
+
run: git fetch https://reichaves:$HF_TOKEN@huggingface.co/spaces/reichaves/chatbot-websites-llama-3.2-90b-text-preview-Brazil main
|
25 |
+
|
26 |
+
- name: Merge changes
|
27 |
+
run: git merge FETCH_HEAD --allow-unrelated-histories -X theirs
|
28 |
+
|
29 |
+
- name: Push to Hugging Face
|
30 |
env:
|
31 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
32 |
run: git push https://reichaves:$HF_TOKEN@huggingface.co/spaces/reichaves/chatbot-websites-llama-3.2-90b-text-preview-Brazil main
|