Skip to content

Fix canary release target_commitish on gh release calls#29

Merged
d4rken merged 1 commit into
mainfrom
canary-fix-target
May 20, 2026
Merged

Fix canary release target_commitish on gh release calls#29
d4rken merged 1 commit into
mainfrom
canary-fix-target

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented May 20, 2026

Summary

  • The first canary run on main failed at the final Update rolling canary pre-release step with HTTP 422 Release.target_commitish is invalid
  • Cause: --target "$TAG" passed the literal string canary as target_commitish, which gh interprets as a branch name
  • Switch gh release create to --target "$SHA" --verify-tag and drop --target from gh release edit since the canary tag is already moved to that commit by the preceding step

Current main state after the failed first run

  • GHCR :canary and :sha-469e167 — published
  • Git tag canary — points at 469e167
  • GitHub release canary — not yet created (this PR's merge run will create it)

Test plan

  • YAML parses
  • Next push to main re-runs the workflow; gh release create should now succeed and create the rolling pre-release

@d4rken d4rken merged commit 5e38c5a into main May 20, 2026
5 checks passed
@d4rken d4rken deleted the canary-fix-target branch May 20, 2026 16:56
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