fix: use base.ref instead of head_ref for checkout in tagpr-release.yml#76
Merged
kryota-dev merged 1 commit intomainfrom Mar 28, 2026
Merged
Conversation
`github.head_ref` checks out the PR head branch (e.g., tagpr-from-v0.1.1), but tagpr requires being on the release branch (main). Use `github.event.pull_request.base.ref` instead, which resolves to the PR base branch (main) for pull_request events and empty for push events. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix incorrect checkout ref in
tagpr-release.yml. The previous fix (#73) usedgithub.head_refwhich checks out the PR head branch (e.g.,tagpr-from-v0.1.1), but tagpr requires being on the release branch (main).Changes
github.head_refwithgithub.event.pull_request.base.refin the checkout steppull_requestevent:base.ref=main(PR base branch) → correctpushevent:base.ref= empty → default checkout behavior → correctRelated Issues
closes #71
Checklist
uses:references are pinned to full commit SHAs (40 characters) with the tag noted in a commentpermissionsare set to the minimum necessaryactionlintlocally and confirmed no errors