Skip to content

fix: preserve annotated tag validation in package workflow - #33

Merged
openai0229 merged 2 commits into
mainfrom
fix/annotated-tag-validation
Oct 8, 2026
Merged

openai0229 merged 2 commits into
mainfrom
fix/annotated-tag-validation

Conversation

@openai0229

Copy link
Copy Markdown
Contributor

The first v0.0.1 tag run failed before packaging because actions/checkout rewrites the checked-out tag ref to the tagged commit. The validation step therefore saw a commit object and rejected a correctly annotated tag.

Restore the remote tag object in the validation step before checking its type. This keeps the annotated-tag gate and verifies the tagged commit remains reachable from origin/main.

Validation:

  • actionlint .github/workflows/package.yml
  • git diff --check
  • isolated Git fixture reproducing checkout ref replacement and remote annotated-tag restoration

The failed run was 37721948027; no Release was created and the existing tag is not published. After this PR merges, the failed tag will be recreated on the new main commit and the release workflow rerun.

AI assistance: implementation and verification performed with Codex.

@openai0229
openai0229 merged commit abc5a18 into main Oct 8, 2026
11 checks passed
@openai0229
openai0229 deleted the fix/annotated-tag-validation branch October 8, 2026 06:53
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