Skip to content

ci(dev-build): move the tag before replacing the release, and keep it on failure - #132

Merged
mcoliver merged 2 commits into
mainfrom
ci/dev-build-tag-recreate
Oct 14, 2026
Merged

mcoliver merged 2 commits into
mainfrom
ci/dev-build-tag-recreate

Conversation

@mcoliver

@mcoliver mcoliver commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The dev build for ab7579e1 (#129) built and notarized everything, then failed in 5. Update dev-build Pre-Release with gh: Resource not accessible by integration (HTTP 403). It had already deleted the release, so there was no dev-build release at all until I republished it by hand.

The 403 came from moving the dev-build tag. GitHub doesn't let GITHUB_TOKEN point a ref at a commit whose .github/workflows differ from main's:

The step now moves the tag first:

  • The tag moves: the step deletes and recreates the release as before.
  • GitHub refuses: the step warns, uploads the files to the existing release with --clobber and updates its notes. The tag stays on the older commit. A later dev build moves it once its commit is main's head again.

Testing Done

  • The YAML parses.
  • Merging this starts a dev build at main's head, which should move the tag normally.
  • The fallback path hasn't run yet.

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>
@mcoliver mcoliver changed the title ci(dev-build): recreate the dev-build tag instead of moving it ci(dev-build): move the tag before replacing the release, and keep it on failure Oct 14, 2026
@mcoliver
mcoliver merged commit c3e5db0 into main Oct 14, 2026
7 of 11 checks passed
@mcoliver
mcoliver deleted the ci/dev-build-tag-recreate branch October 14, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant