Skip to content

Commit

Permalink
Only run publish workflow on upstream repo
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Earlopain committed Feb 20, 2025
1 parent 64bfac4 commit 5be7ea9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
publish:
name: Publish to RubyGems
runs-on: ubuntu-latest
if: github.repository_owner == 'rubocop'
permissions:
contents: write
id-token: write
Expand Down

0 comments on commit 5be7ea9

Please sign in to comment.