Skip to content

fix(ci): repair flake-sync commit message YAML#5

Merged
jasonodoom merged 1 commit into
mainfrom
fix/flake-sync-yaml
Jun 9, 2026
Merged

fix(ci): repair flake-sync commit message YAML#5
jasonodoom merged 1 commit into
mainfrom
fix/flake-sync-yaml

Conversation

@jasonodoom

Copy link
Copy Markdown
Contributor

The flake-sync workflow has been failing validation on every trigger with "Invalid workflow file ... line 117". It has been invalid since it was first added.

Cause

In the Commit + push step, the git commit message body was written at column 0:

run: |
  ...
  git commit -m "chore(flake): sync version + npmDepsHash [skip-flake-sync]

Auto-generated by .github/workflows/flake-sync.yml.
- version: ... -> ...

A YAML literal block (run: |) ends at the first line indented less than the block. The body lines at column 0 therefore terminated the block, and YAML tried to parse "Auto-generated..." and "- version:" as mapping keys, which fails.

Fix

Indent the message body lines into the block. The literal scalar strips the common block indentation, so the rendered commit message still starts at column 0 exactly as before. Also replaced the two non-ASCII arrow characters with ->.

Verification

All six workflow files parse cleanly after the change. Confirmed the rendered run block keeps the commit message body at column 0, so the produced commit is unchanged.

The commit-message body in the Commit + push step sat at column 0,
under-indented relative to its run: | block, so YAML ended the block
early and parsed the body as mapping keys. The workflow has been
invalid since it was added, failing validation on every trigger.

Indent the body lines into the block (the literal scalar strips the
block indent, so the message still renders at column 0) and replace
the non-ASCII arrows with ->.
@jasonodoom jasonodoom merged commit c9dd594 into main Jun 9, 2026
3 checks passed
@jasonodoom jasonodoom deleted the fix/flake-sync-yaml branch June 9, 2026 04: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.

1 participant