Repository navigation
ci(dev-build): move the tag before replacing the release, and keep it on failure - #132
Merged
Merged
Conversation
GITHUB_TOKEN can't update a ref across commits that change .github/workflows, so the PATCH that moved the dev-build tag failed with "Resource not accessible by integration" whenever a workflow had changed since the last dev build (ab7579e, after #129 changed homebrew-canary.yml). The release had already been deleted, so no dev-build release was left. Delete the tag and let `gh release create --target` create it on this commit instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Michael Oliver <mcoliver@gmail.com>
… on failure Recreating the tag doesn't avoid the 403: re-running the ab7579e job with the tag already on that commit failed the same way. GITHUB_TOKEN may not point a ref at a commit whose workflow files differ from main's, which happens when a workflow change (#131) is merged during the build. Move the tag first and only delete and recreate the release when that works. Otherwise upload the files to the existing release with --clobber and update its notes, so a dev-build release always exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Michael Oliver <mcoliver@gmail.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
The dev build for
ab7579e1(#129) built and notarized everything, then failed in 5. Update dev-build Pre-Release withgh: Resource not accessible by integration (HTTP 403). It had already deleted the release, so there was nodev-buildrelease at all until I republished it by hand.The 403 came from moving the
dev-buildtag. GitHub doesn't letGITHUB_TOKENpoint a ref at a commit whose.github/workflowsdiffer frommain's:publish-packages.ymland was merged while theab7579e1build ran, so that commit was no longermain's head.ab7579e1failed the same way.f3af1a13build moved the tag across chore(windows): drop the winget, Scoop and Chocolatey packages #122's workflow changes, butf3af1a13was still the head ofmainthen, and it succeeded.The step now moves the tag first:
--clobberand updates its notes. The tag stays on the older commit. A later dev build moves it once its commit ismain's head again.Testing Done
main's head, which should move the tag normally.