fix(ci): quote release workflow if: so the YAML parses #4

Merged
whitlocktech merged 1 commits from fix/release-workflow-yaml into main 2026-07-14 16:51:51 +00:00
Member

Problem

The release workflow failed to load:

Workflow config file is invalid. Please check your config file:
yaml: line 59: mapping values are not allowed in this context

Line 59 is the job-level guard:

if: ${{ !contains(github.event.head_commit.message, 'chore(release): bump version') }}

As an unquoted YAML scalar, the ): in chore(release): bump reads 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:

if: "${{ !contains(github.event.head_commit.message, 'chore(release): bump version') }}"

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

## Problem The release workflow failed to load: ``` Workflow config file is invalid. Please check your config file: yaml: line 59: mapping values are not allowed in this context ``` Line 59 is the job-level guard: ```yaml if: ${{ !contains(github.event.head_commit.message, 'chore(release): bump version') }} ``` As an **unquoted** YAML scalar, the `): ` in `chore(release): bump` reads 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: ```yaml if: "${{ !contains(github.event.head_commit.message, 'chore(release): bump version') }}" ``` ## 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](https://claude.com/claude-code)
wtclaude added 1 commit 2026-07-14 16:51:38 +00:00
The 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
whitlocktech merged commit 78fcb7effb into main 2026-07-14 16:51:51 +00:00
whitlocktech deleted branch fix/release-workflow-yaml 2026-07-14 16:51:52 +00:00
Sign in to join this conversation.
No description provided.