Skip to content

Commit bf51786

Browse files
nhortonclaude
andauthored
Fix YAML syntax error in release workflow template string (#152)
The multi-line bash string for UNRELEASED_TEMPLATE had content starting at column 0, which broke YAML literal block parsing. Using printf to build the template keeps proper YAML indentation. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 20d6414 commit bf51786

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/create-release.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,12 @@ jobs:
4141
DATE=$(date +%Y-%m-%d)
4242
4343
# Create the new Unreleased section template
44-
UNRELEASED_TEMPLATE="## [Unreleased]
45-
46-
### Added
47-
48-
### Changed
49-
50-
### Fixed
51-
52-
### Removed
53-
54-
"
44+
UNRELEASED_TEMPLATE=$(printf '%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n' \
45+
'## [Unreleased]' \
46+
'### Added' \
47+
'### Changed' \
48+
'### Fixed' \
49+
'### Removed')
5550
5651
# Read the current changelog
5752
CHANGELOG=$(cat CHANGELOG.md)

0 commit comments

Comments
 (0)