Skip to content

ci(release): restore annotated tag before validation - #10

Merged
scarmuega merged 1 commit into
mainfrom
fix/release-annotated-tag
Sep 28, 2026
Merged

scarmuega merged 1 commit into
mainfrom
fix/release-annotated-tag

Conversation

@scarmuega

Copy link
Copy Markdown
Contributor

Problem

The v0.15.0 release run failed at the annotated-tag check even though the pushed tag is annotated. actions/checkout@v4 fetches the tag as +<sha>:refs/tags/v0.15.0, replacing the annotated tag object with a lightweight ref, so git cat-file -t reports commit.

Fix

Force-fetch the tag object by name right after checkout, before validation.

Verification

Reproduced the checkout fetch sequence in a scratch clone against the published v0.15.0 tag: git cat-file -t returned commit after checkout and tag after the restore step, still peeling to the tagged commit. Workflow YAML parses.

Nothing was published by the failed run; after merge, v0.15.0 is re-pointed to the merge commit.

🤖 Generated with Claude Code

actions/checkout@v4 fetches the pushed tag as +<sha>:refs/tags/<tag>,
replacing the annotated tag with a lightweight ref, so the annotated-tag
check rejected every real release tag. Force-fetch the tag object by name
before validating it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@scarmuega
scarmuega merged commit b3fe259 into main Sep 28, 2026
5 checks passed
@scarmuega
scarmuega deleted the fix/release-annotated-tag branch September 28, 2026 11:00
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