Skip to content

Commit 7bbf3de

Browse files
committed
fix(ci): prevent running fixcs/sync-with-template on forks
1 parent 3657e9a commit 7bbf3de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fixcs:
2323
name: Run php-cs-fixer
2424
needs: sync-with-template
25-
if: (github.event_name == 'push' || github.event_name == 'schedule') && !startsWith(github.ref, 'refs/tags')
25+
if: (github.event_name == 'push' || github.event_name == 'schedule') && !startsWith(github.ref, 'refs/tags') && github.repository_owner == 'zenstruck'
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: zenstruck/.github@php-cs-fixer
@@ -33,7 +33,7 @@ jobs:
3333

3434
sync-with-template:
3535
name: Sync meta files
36-
if: (github.event_name == 'push' || github.event_name == 'schedule') && !startsWith(github.ref, 'refs/tags')
36+
if: (github.event_name == 'push' || github.event_name == 'schedule') && !startsWith(github.ref, 'refs/tags') && github.repository_owner == 'zenstruck'
3737
runs-on: ubuntu-latest
3838
steps:
3939
- uses: zenstruck/.github@sync-with-template

0 commit comments

Comments
 (0)