fix(ci): quote release workflow if: so the YAML parses
#4
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/release-workflow-yaml"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The release workflow failed to load:
Line 59 is the job-level guard:
As an unquoted YAML scalar, the
):inchore(release): bumpreads as a mapping value, so the parser rejects the whole file.Fix
Double-quote the entire
${{ }}expression so YAML treats it as a plain string and hands it to the Actions expression engine intact:Verification
Parsed the full file with a YAML loader after the change — it now loads end-to-end (the runner had already parsed everything up to line 59, so this was the only offending line). No behavior change to the workflow logic.
🤖 Generated with Claude Code
if:so YAML parses ddf14bdab0The job-level `if:` expression contains a colon (`chore(release):`), which an unquoted YAML scalar misreads as a mapping value — Gitea rejected the workflow with "yaml: line 59: mapping values are not allowed in this context". Double-quote the whole `${{ }}` expression so it is treated as a string. Verified the file parses end-to-end after the change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114TpmrNW4wNXsHq5CR72jQ