Skip to content

Commit

Permalink
release-please - skip pr for forked repos (github_token permissions)
Browse files Browse the repository at this point in the history
  • Loading branch information
idirze committed Mar 27, 2024
1 parent bc62ca7 commit 6720947
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
if: github.repository_owner == 'OKDP' && github.event.pull_request.merged == true
# Skip the release process in the fork
# The pull request should come from the same repo (github_token from the fork does not have write permissions)
if: github.repository_owner == 'OKDP' && github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: google-github-actions/release-please-action@v4
id: release-please
Expand Down

0 comments on commit 6720947

Please sign in to comment.