:pencil: [CI] Trigger sync actions only when new version released
Browse files
.github/workflows/.prettierrc
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"tabWidth": 4,
|
3 |
+
"overrides": [
|
4 |
+
{
|
5 |
+
"files": "*.yml",
|
6 |
+
"options": {
|
7 |
+
"tabWidth": 2
|
8 |
+
}
|
9 |
+
}
|
10 |
+
]
|
11 |
+
}
|
.github/workflows/sync_to_hf_space.yml
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
name: Sync to Hugging Face hub
|
2 |
on:
|
3 |
push:
|
4 |
-
|
|
|
5 |
workflow_dispatch:
|
6 |
|
7 |
jobs:
|
@@ -15,4 +16,4 @@ jobs:
|
|
15 |
- name: Push to hub
|
16 |
env:
|
17 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
18 |
-
run: git push -f https://Hansimov:$HF_TOKEN@huggingface.co/spaces/Hansimov/hf-llm-api main
|
|
|
1 |
name: Sync to Hugging Face hub
|
2 |
on:
|
3 |
push:
|
4 |
+
paths:
|
5 |
+
- "configs/info.json"
|
6 |
workflow_dispatch:
|
7 |
|
8 |
jobs:
|
|
|
16 |
- name: Push to hub
|
17 |
env:
|
18 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
19 |
+
run: git push -f https://Hansimov:$HF_TOKEN@huggingface.co/spaces/Hansimov/hf-llm-api main
|