Skip to content

Fix YAML syntax error in bump-version workflow#35

Merged
tihonove merged 2 commits into
mainfrom
copilot/fix-invalid-yaml-syntax
Mar 19, 2026
Merged

Fix YAML syntax error in bump-version workflow#35
tihonove merged 2 commits into
mainfrom
copilot/fix-invalid-yaml-syntax

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 19, 2026

The bump-version.yml workflow was unparseable due to a YAML syntax error: the : in the git commit message template "chore(release): %s" was interpreted as a YAML mapping value separator within an unquoted plain scalar.

Change

  • Converted the inline run: value to a block scalar (|), making the shell command literal text immune to YAML special-character interpretation:
# Before — YAML parser chokes on ": " inside the unquoted scalar
run: npm version ${{ github.event.inputs.bump_type }} -m "chore(release): %s"

# After
run: |
    npm version ${{ github.event.inputs.bump_type }} -m "chore(release): %s"
Original prompt

This section details on the original issue you should resolve

<issue_title>Incorrect workflow</issue_title>
<issue_description> Check failure on line 37 in .github/workflows/bump-version.yml

GitHub Actions
/ .github/workflows/bump-version.yml
Invalid workflow file

You have an error in your yaml syntax on line 37</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…ommand

Co-authored-by: tihonove <2770182+tihonove@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix incorrect workflow in bump-version.yml Fix YAML syntax error in bump-version workflow Mar 19, 2026
Copilot AI requested a review from tihonove March 19, 2026 13:01
@tihonove tihonove marked this pull request as ready for review March 19, 2026 13:08
@tihonove tihonove merged commit 5fb0c71 into main Mar 19, 2026
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.

Incorrect workflow

2 participants