Spaces:
Runtime error
Runtime error
Makes sync to hub generic for branches
Browse filesSigned-off-by: Unai Garay <[email protected]>
.github/workflows/sync_huggingface_hub.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
name: Sync to Hugging Face hub
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches: [main]
|
|
@@ -13,8 +13,10 @@ jobs:
|
|
| 13 |
- uses: actions/checkout@v2
|
| 14 |
with:
|
| 15 |
fetch-depth: 0
|
|
|
|
|
|
|
| 16 |
- name: Push to hub
|
| 17 |
env:
|
| 18 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 19 |
run: |
|
| 20 |
-
git push https://ugaray96:[email protected]/spaces/ugaray96/neural-search
|
|
|
|
| 1 |
+
name: Sync to Hugging Face hub from branch
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches: [main]
|
|
|
|
| 13 |
- uses: actions/checkout@v2
|
| 14 |
with:
|
| 15 |
fetch-depth: 0
|
| 16 |
+
- name: Branch name
|
| 17 |
+
run: echo running on branch ${GITHUB_REF_NAME}
|
| 18 |
- name: Push to hub
|
| 19 |
env:
|
| 20 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 21 |
run: |
|
| 22 |
+
git push https://ugaray96:[email protected]/spaces/ugaray96/neural-search ${GITHUB_REF_NAME}
|
.github/workflows/sync_huggingface_hub_from_branch.yml
DELETED
|
@@ -1,19 +0,0 @@
|
|
| 1 |
-
name: Sync to Hugging Face hub from branch
|
| 2 |
-
on:
|
| 3 |
-
# to run this workflow manually from the Actions tab
|
| 4 |
-
workflow_dispatch:
|
| 5 |
-
|
| 6 |
-
jobs:
|
| 7 |
-
sync-to-hub:
|
| 8 |
-
runs-on: ubuntu-latest
|
| 9 |
-
steps:
|
| 10 |
-
- uses: actions/checkout@v2
|
| 11 |
-
with:
|
| 12 |
-
fetch-depth: 0
|
| 13 |
-
- name: Branch name
|
| 14 |
-
run: echo running on branch ${GITHUB_REF_NAME}
|
| 15 |
-
- name: Push to hub
|
| 16 |
-
env:
|
| 17 |
-
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 18 |
-
run: |
|
| 19 |
-
git push https://ugaray96:[email protected]/spaces/ugaray96/neural-search ${GITHUB_REF_NAME}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|