Skip to content

build: resolve YAML syntax error in auto-fix.yml job condition#932

Merged
dkhawk merged 3 commits into
mainfrom
build/fix-auto-fix-workflow-yaml-syntax
Jun 12, 2026
Merged

build: resolve YAML syntax error in auto-fix.yml job condition#932
dkhawk merged 3 commits into
mainfrom
build/fix-auto-fix-workflow-yaml-syntax

Conversation

@kikoso

@kikoso kikoso commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The if: condition on the auto-fix job contained 'agent: create-pr' — a colon-space inside an unquoted YAML value — which the YAML parser rejected with a syntax error on line 34.
  • Wrapped the expression in ${{ }} so GitHub Actions evaluates it correctly.

Root cause

In YAML, a colon followed by a space inside a plain (unquoted) scalar can be misinterpreted as a mapping key separator. Wrapping the entire if condition in ${{ }} is the standard GitHub Actions pattern for expressions that contain special characters.

Test plan

  • Confirm the workflow file parses without errors after merge
  • Confirm the job runs when the agent: create-pr label is added to an issue
  • Confirm the job does not run on PR creation

@googlemaps-bot

Copy link
Copy Markdown
Contributor

Code Coverage

Overall Project 24.82%

There is no coverage information present for the Files changed

@kikoso kikoso marked this pull request as ready for review June 12, 2026 17:46
@kikoso kikoso requested a review from a team as a code owner June 12, 2026 17:46
@dkhawk dkhawk merged commit b7be52f into main Jun 12, 2026
12 checks passed
@dkhawk dkhawk deleted the build/fix-auto-fix-workflow-yaml-syntax branch June 12, 2026 20:59
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.

3 participants