GitHub Actions matrix value not interpolating in job name
The name field renders matrix values only when they are written as expressions. A bare matrix.os without \${{ }} prints the literal text instead of the value.
What this error means
The job appears in the Actions UI with the unexpanded text like "build (matrix.os)" rather than "build (ubuntu-latest)".
github-actions
# UI shows the literal text instead of the value:
build (matrix.os)Common causes
Missing expression delimiters
Without \${{ }}, the name is treated as a literal string.
Quoting the whole name as a constant
Wrapping the name so the expression is inside quotes prevents evaluation.
How to fix it
Interpolate the matrix value
- Wrap the dynamic part in \${{ }}.
- Keep static text outside the expression.
- Confirm the rendered name in the Actions UI.
.github/workflows/ci.yml
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
name: build (${{ matrix.os }})How to prevent it
- Always wrap dynamic name segments in \${{ }}.
- Preview matrix expansions in the Actions UI after changes.
Related guides
GitHub Actions "Unrecognized named-value: 'matrix'"Fix "Unrecognized named-value: 'matrix'" in GitHub Actions - the matrix context was referenced where it is no…
GitHub Actions matrix include creates an unexpected combinationFix a GitHub Actions matrix where include adds or alters combinations unexpectedly - include both extends and…
GitHub Actions "A mapping was found where a sequence is expected"Fix "A mapping was found where a sequence is expected" - a list-typed key like steps or jobs.<id>.needs was w…