Skip to content

Fix release action: remove invalid --target flag#114

Merged
jancurn merged 1 commit intomainfrom
claude/fix-release-action-BT7kJ
Mar 24, 2026
Merged

Fix release action: remove invalid --target flag#114
jancurn merged 1 commit intomainfrom
claude/fix-release-action-BT7kJ

Conversation

@jancurn
Copy link
Member

@jancurn jancurn commented Mar 24, 2026

Summary

  • Remove --target "v${VERSION}" from the gh release create command in the release workflow
  • The --target flag was passing a tag name as target_commitish, which GitHub API rejects with HTTP 422 (Release.target_commitish is invalid)
  • Since the tag is already pushed in a prior step, gh release create automatically resolves the tag's commit — no --target needed

Test plan

  • Trigger a release workflow and verify the GitHub release is created successfully
  • Verify the pre-release path (which already uses ${{ github.sha }}) is unaffected

https://claude.ai/code/session_019YFSdMW7TobZNsmey63CYm

The --target flag was passing the tag name (e.g. "v0.2.0") as target_commitish,
which GitHub API rejects with HTTP 422. Since the tag is already pushed before
this step runs, gh release create automatically resolves the tag's commit.

https://claude.ai/code/session_019YFSdMW7TobZNsmey63CYm
@jancurn jancurn merged commit ed605be into main Mar 24, 2026
6 checks passed
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.

3 participants