From a547ebff17cfb97fb261641bca84c14d9c56771e Mon Sep 17 00:00:00 2001 From: ospab Date: Wed, 8 Jul 2026 22:23:01 +0300 Subject: [PATCH] =?UTF-8?q?fix(ci):=20quote=20run-name=20=E2=80=94=20unquo?= =?UTF-8?q?ted=20colon=20broke=20YAML=20parsing=20on=20every=20push?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The run-name expression contains the GHA string literal 'Release build: {0}' — an unquoted YAML plain scalar treats ": " as starting a nested mapping, which invalidated the entire workflow file at parse time (before any job runs). Every push since that line was introduced failed instantly with "Invalid workflow file ... line 11", silently burning an Actions-minutes run each time for nothing. Wrapping the whole expression in double quotes fixes it — verified with `npx js-yaml` that the file now parses and the run-name value round-trips intact. --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 74a31ba..6d86694 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,13 @@ name: CI/CD # exactly like a literal release tag and caused real confusion — the actual # release tag has been correct (versioned) all along; only this label lied # about it. Spell out "channel" so nobody mistakes one for the other again. -run-name: ${{ startsWith(github.ref, 'refs/tags/') && format('Release build: {0}', github.ref_name) || format('Release build: {0} channel', github.ref_name) }} +# NOTE: this value MUST be quoted. The GHA string literal below contains +# "Release build: {0}" — an unquoted YAML plain scalar treats ": " (colon +# then space) as starting a nested mapping, which is exactly what broke every +# single push since this line was introduced: GitHub rejected the whole +# workflow file at parse time (before any job runs), silently burning an +# Actions-minutes-billed run per push for nothing. +run-name: "${{ startsWith(github.ref, 'refs/tags/') && format('Release build: {0}', github.ref_name) || format('Release build: {0} channel', github.ref_name) }}" on: push: