Fix auto-tag workflow YAML (multi-line tag message broke literal block scalar)#78
Merged
Conversation
… line The previous version had a multi-line tag message inside `git tag -a -m "..."` where the inner lines started at column 1 of the file. YAML's `run: |` literal block requires consistent indentation - lines at column 1 broke out of the block scalar and confused the YAML scanner. Result: every run since PR #76 failed in 0s before any step could execute, with the API exposing the workflow file path as the workflow `name` (a tell that name parsing failed). Fix: collapse the tag message to a single line. The user-facing release notes are auto-populated by release.yml's `generate_release_notes: true` from the commit history between this tag and the previous one, so the tag annotation itself does not need to be elaborate. Validated locally with python yaml.safe_load - parses cleanly. The next push to main that touches plugin.json will fire the workflow and create the matching tag automatically. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The auto-tag workflow added in PR #76 has been failing in 0s on every push to main since it landed. Root cause: the tag message inside
git tag -a -m "..."spanned multiple lines, and the inner lines started at column 1 of the file. YAML'srun: |literal block requires consistent indentation - lines at column 1 broke out of the block scalar and confused the YAML scanner. Result: GitHub couldn't parse the workflow file (the API even exposed the workflownameas the file path, a tell that name parsing failed) and every run failed immediately before any step could execute.Fix: collapse the tag message to a single line. The user-facing release notes are auto-populated by
release.yml'sgenerate_release_notes: truefrom the commit history, so the tag annotation itself does not need to be elaborate.Test plan
python3 -c "import yaml; yaml.safe_load(open('.github/workflows/auto-tag-on-plugin-bump.yml'))"parses cleanly🤖 Generated with Claude Code