Skip to content

Commit aac6752

Browse files
authored
Merge pull request #3 from Priestch/copilot/add-changelog-workflow-again
fix: changelog extraction fails for dated section headers in release workflow
2 parents 5e46f78 + 6b73c39 commit aac6752

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
@@ -44,7 +44,7 @@ jobs:
4444
# Extract the section for the released version between ## headings
4545
VERSION="${{ steps.tag.outputs.version }}"
4646
BODY=$(awk -v version="$VERSION" '
47-
$0 == "## [" version "]" { found = 1; next }
47+
$0 ~ ("^## \\[" version "\\]") { found = 1; next }
4848
found && /^## / { exit }
4949
found { print }
5050
' "$CHANGELOG")

0 commit comments

Comments
 (0)