Skip to content

Pin release.yml checkout ref to refs/tags/<tag_name> on workflow_dispatch - #156

Merged
Widthdom merged 1 commit into
mainfrom
claude/fix-release-workflow-weWjt
Apr 17, 2026
Merged

Pin release.yml checkout ref to refs/tags/<tag_name> on workflow_dispatch#156
Widthdom merged 1 commit into
mainfrom
claude/fix-release-workflow-weWjt

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

When workflow_dispatch was invoked with a branch name (e.g. "main"),
actions/checkout would silently resolve it as a branch ref and later
steps that assume HEAD is a release tag (git describe --tags
--exact-match HEAD, gh release create --verify-tag, etc.) would fail
with confusing errors. Resolve inputs.tag_name via format('refs/tags/{0}',
inputs.tag_name) in both the release and nuget-publish jobs so a branch
name now fails the checkout step itself instead of reaching the
tag-assumed downstream logic.

https://claude.ai/code/session_01EynRk1KiNDypBTkzJgwfVT

…atch

When workflow_dispatch was invoked with a branch name (e.g. "main"),
actions/checkout would silently resolve it as a branch ref and later
steps that assume HEAD is a release tag (git describe --tags
--exact-match HEAD, gh release create --verify-tag, etc.) would fail
with confusing errors. Resolve inputs.tag_name via format('refs/tags/{0}',
inputs.tag_name) in both the release and nuget-publish jobs so a branch
name now fails the checkout step itself instead of reaching the
tag-assumed downstream logic.

https://claude.ai/code/session_01EynRk1KiNDypBTkzJgwfVT
@Widthdom
Widthdom merged commit 54867ec into main Apr 17, 2026
8 checks passed
@Widthdom
Widthdom deleted the claude/fix-release-workflow-weWjt branch April 17, 2026 15:37
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.

2 participants