Skip to content

Commit 12c86e1

Browse files
committed
Fix release.yml changelog extraction header pattern
The sed pattern was matching '## [v${VERSION}]' (bracketed) but the container CHANGELOG uses unbracketed '## v${VERSION} — date' headers. The match always failed and release notes silently fell back to the 'Release v${VERSION}' placeholder. Switch to the same unbracketed pattern release-cli.yml uses (with a trailing space sentinel to avoid prefix collisions like v2.2.1 vs v2.2.10).
1 parent 4bacbaf commit 12c86e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
id: changelog
5151
run: |
5252
VERSION="${{ needs.validate.outputs.version }}"
53-
NOTES=$(sed -n "/^## \[v${VERSION}\]/,/^## \[v/{ /^## \[v${VERSION}\]/d; /^## \[v/d; p; }" container/.devcontainer/CHANGELOG.md)
53+
NOTES=$(sed -n "/^## v${VERSION} /,/^## v/{ /^## v${VERSION} /d; /^## v/d; p; }" container/.devcontainer/CHANGELOG.md)
5454
if [ -z "$NOTES" ]; then
5555
NOTES="Release v${VERSION}"
5656
fi

0 commit comments

Comments
 (0)