Repository navigation
ci: create releases with the built-in token instead of the release app #401
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
Merged
Changes from all commits
Commits
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
Oops, something went wrong.
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.
High: This token will hit the same
Resource not accessible by integrationthat the app token hit in the #397 and #398 runs, so the merge run most likely still won't create v1.21.1.The check that fails is not "workflow changes in range". It is that the tag's commit has a different
.github/workflows/tree from every branch tip:50e819a6is four commits behindmain, and #397–#400 changedci.yml,e2e.ymlandrelease-please.yml. GitHub refuses to create such a ref from any GitHub App token without theworkflowspermission, andGITHUB_TOKENcannot have that permission.Evidence:
main. So were the runpod-python tags in the description.GITHUB_TOKEN: a tag on an oldermaincommit rejected because.github/workflows/differs from the latest commit on any branch.workflowsis added.Two ways out:
git push origin 50e819a65a4b39fa7a198860e1c9f3039fc0cbab:refs/tags/v1.21.1. The create-release API ignorestarget_commitishwhen the tag already exists, so no ref is created and the check never runs. release-please then creates the release on the existing tag,release_createdis true, and PyPI publish runs.Either way, the "Why this works" and "After merge" sections need rewriting.