Skip to content

Commit 5be7ea9

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) Ref: rubocop/rubocop-rspec#2050
1 parent 64bfac4 commit 5be7ea9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
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
contents: write
1213
id-token: write

0 commit comments

Comments
 (0)