Skip to content

Commit 2bc831c

Browse files
committed
Only run publish workflow on upstream repo
When syncing forks, they also try to publish (which doesn't make a lot of sense and doesn't work)
1 parent e8ac379 commit 2bc831c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jobs:
77
publish:
88
name: Publish to RubyGems
99
runs-on: ubuntu-latest
10+
if: github.repository_owner == 'rubocop'
1011
permissions:
1112
actions: write
1213
contents: write

0 commit comments

Comments
 (0)