ci: update GHA run-name format for releases

This commit is contained in:
ospab 2026-07-09 01:24:43 +03:00
parent 6361a87072
commit 244d3ad374
1 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,19 @@
name: CI/CD
run-name: "CI/CD: release version ${{ github.ref_name }}"
# `run-name` is evaluated at workflow-start, BEFORE any job runs — it cannot
# see resolve-channel's computed tag_name (e.g. "0.4.3-nightly"), only the
# `github.*` context. The old "release version ${{ github.ref_name }}" showed
# the bare branch name ("nightly"/"pre-release") for every run, which reads
# 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.
# 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/') && (contains(github.ref_name, 'beta') && format('CI/CD: beta version {0}', github.ref_name) || contains(github.ref_name, 'nightly') && format('CI/CD: nightly version {0}', github.ref_name) || format('CI/CD: release version {0}', github.ref_name)) || format('CI/CD: {0} channel build', github.ref_name) }}"
on:
push: