Skip to content

ci: quote if expression in tag-on-release-merge workflow#429

Merged
sherwinski merged 1 commit into
mainfrom
fix/tag-on-release-merge-yaml-quoting
Jun 24, 2026
Merged

ci: quote if expression in tag-on-release-merge workflow#429
sherwinski merged 1 commit into
mainfrom
fix/tag-on-release-merge-yaml-quoting

Conversation

@sherwinski

Copy link
Copy Markdown
Contributor

One Line Summary

Fix invalid YAML in tag-on-release-merge.yml that prevented release commits from being auto-tagged (and therefore published).

Motivation

The if: condition on the tag job was an unquoted YAML scalar containing 'chore: Release '. The embedded : (colon-space) was parsed as a YAML mapping separator, producing mapping values are not allowed in this context at line 15. A YAML syntax error invalidates the entire workflow file, so GitHub refused to load it and the workflow never ran.

Impact: when chore: Release X.Y.Z commits merged to main, no vX.Y.Z tag was created, so the downstream publish-svn.yml (triggered on v3.* tags) never fired and the release was not published to WordPress.org. This is what happened with 3.9.1 (#428) — the tag was missing and had to be pushed manually to unblock the release.

Scope

  • Only changes the if: line in .github/workflows/tag-on-release-merge.yml.
  • No change to runtime behavior: GitHub Actions evaluates if: strings as expressions, so quoting is purely a YAML-parsing fix.
  • The same workflow runs for v2 releases, which this also fixes.

Testing

  • Reproduced the parse error locally (mapping values are not allowed in this context at line 15 column 60).
  • Verified the quoted form parses cleanly as valid YAML.

Checklist

  • Verified the fix parses as valid YAML
  • No behavioral change to the workflow logic

The unquoted if value contained 'chore: Release ', whose embedded colon-space
was parsed as a YAML mapping separator, invalidating the entire workflow file
so it never ran. As a result release commits were not auto-tagged and the
WordPress.org SVN publish never triggered. Quoting the expression makes it a
valid YAML scalar; GitHub Actions still evaluates if strings as expressions.
@sherwinski sherwinski force-pushed the fix/tag-on-release-merge-yaml-quoting branch from e89df16 to 2fb789b Compare June 24, 2026 20:47
@sherwinski sherwinski changed the title fix: quote if expression in tag-on-release-merge workflow ci: quote if expression in tag-on-release-merge workflow Jun 24, 2026
@sherwinski sherwinski requested a review from fadi-george June 24, 2026 20:47
@sherwinski sherwinski merged commit bb5f849 into main Jun 24, 2026
10 checks passed
@sherwinski sherwinski deleted the fix/tag-on-release-merge-yaml-quoting branch June 24, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants