Repository navigation
feat: let release-drafter.yml publish the release of a new version #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+63
−38
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
0d753d0
feat: let the publisher App release the wheels, and add the wheel run…
shenxianpeng 9dea815
fix: call the other shared workflows at the same commit as wheel-auto…
shenxianpeng 6ebf8b4
refactor: move the wheel automation and runbooks to cpp-linter/wheels
shenxianpeng f546620
fix: give release-drafter the App token as its token input
shenxianpeng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Published releases can tag a commit other than the one their version was read from.
The checkout at line 65 and the drafter call at line 135 both use
inputs.commitish. When that value is a branch, the release target resolves when the release is created. If the branch advances after checkout and before the publish call,v<version>is created at the newer commit.publish.ymlbuilds from that tag, so the artifacts and the release notes can disagree.The window is short and needs a push during the run. Automatic publication removes the manual check that previously gave a person time to review the draft.
Publish against the commit that was read. After the checkout step, record the commit SHA, for example with
git rev-parse HEADin a step that writes it toGITHUB_OUTPUT. Pass that SHA ascommitishto the versioned drafter step at line 135. Keep the branch target for the unversioned drafter step at lines 123-130. Before making this change, confirm that the drafter accepts a commit SHA forcommitish.Source: Learnings