Skip to content

Commit b388fa0

Browse files
committed
fix(ci): skip GitHub-only sync on Forgejo
1 parent 540a844 commit b388fa0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/sync-hf-spaces.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ concurrency:
3535

3636
jobs:
3737
detect:
38+
if: ${{ github.server_url == 'https://github.com' }}
3839
name: Resolve release target
3940
runs-on: ubuntu-latest
4041
outputs:
@@ -107,7 +108,7 @@ jobs:
107108
sync:
108109
name: Sync ${{ matrix.folder }}
109110
needs: detect
110-
if: needs.detect.outputs.empty == 'false'
111+
if: ${{ always() && github.server_url == 'https://github.com' && needs.detect.result == 'success' && needs.detect.outputs.empty == 'false' }}
111112
runs-on: ubuntu-latest
112113

113114
strategy:

0 commit comments

Comments
 (0)