Fix release workflow parse error (literal ${{ }} in a shell comment) - #6
Merged
Conversation
GitHub parses ${{ }} expressions everywhere in a workflow file, including
inside run: script comments, so the empty one in an explanatory comment broke
workflow parsing (422 'An expression was expected'). Reworded the comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
One-line fix to
.github/workflows/release.yml: an explanatory comment inside therun:block contained a literal${{ }}. GitHub Actions parses${{ }}expressions everywhere in a workflow file — including shell comments — so that empty expression made the whole workflow unparseable (422: An expression was expected).Why it matters
The broken file merged to
mainwith #5, so:v*tag release would fail to parse and never publish.(Local
yaml.safe_loaddidn't catch it — the file is valid YAML; it's only invalid as a GitHub expression.)Verification
Triggered the Release workflow with
dry_run=trueon this branch (the fixed version): it parsed and ran green end-to-end — build, test, pack all 13 packages, and skipped the push — in ~44s. RunThis PR is a single commit (everything else from the prior work is already on
mainvia #5).🤖 Generated with Claude Code
https://claude.ai/code/session_01V1phdgDossB7htzxcbZTNF
Generated by Claude Code