Skip to content

Fix release workflow parse error (literal ${{ }} in a shell comment) - #6

Merged
timonkrebs merged 1 commit into
mainfrom
claude/charming-bell-iq2emr
Jun 19, 2026
Merged

Fix release workflow parse error (literal ${{ }} in a shell comment)#6
timonkrebs merged 1 commit into
mainfrom
claude/charming-bell-iq2emr

Conversation

@timonkrebs

Copy link
Copy Markdown
Owner

What

One-line fix to .github/workflows/release.yml: an explanatory comment inside the run: 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 main with #5, so:

  • GitHub flags the release workflow as failed on the merge commit, and
  • a real v* tag release would fail to parse and never publish.

(Local yaml.safe_load didn't catch it — the file is valid YAML; it's only invalid as a GitHub expression.)

Verification

Triggered the Release workflow with dry_run=true on 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. Run

This PR is a single commit (everything else from the prior work is already on main via #5).

🤖 Generated with Claude Code

https://claude.ai/code/session_01V1phdgDossB7htzxcbZTNF


Generated by Claude Code

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.
Copilot AI review requested due to automatic review settings June 19, 2026 14:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@timonkrebs
timonkrebs merged commit bf8b16a into main Jun 19, 2026
2 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