Spaces:
Build error
Build error
:boom: [Fix] Actions failed if tag new release during run
Browse files
.github/workflows/sync_to_hf_space.yml
CHANGED
@@ -11,10 +11,11 @@ jobs:
|
|
11 |
sync-to-hub:
|
12 |
runs-on: ubuntu-latest
|
13 |
steps:
|
14 |
-
- uses: actions/checkout@
|
15 |
with:
|
16 |
fetch-depth: 0
|
17 |
lfs: true
|
|
|
18 |
- name: Push to hub
|
19 |
env:
|
20 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
11 |
sync-to-hub:
|
12 |
runs-on: ubuntu-latest
|
13 |
steps:
|
14 |
+
- uses: actions/checkout@v4
|
15 |
with:
|
16 |
fetch-depth: 0
|
17 |
lfs: true
|
18 |
+
ref: main
|
19 |
- name: Push to hub
|
20 |
env:
|
21 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|