Skip to content

Commit 67940d4

Browse files
committed
Fix auto release notes
1 parent 70f3161 commit 67940d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ jobs:
3333
- name: Extract changelog section
3434
run: |
3535
VERSION=${GITHUB_REF_NAME#v}
36-
awk "/## \\[$VERSION\\]/,/## \\[/" CHANGELOG.md | sed '$d' > RELEASE_NOTES.md
36+
awk -v ver="$VERSION" '
37+
$0 ~ "^## \\["ver"\\]" {flag=1; print; next}
38+
/^## \[/ {flag=0}
39+
flag
40+
' CHANGELOG.md > RELEASE_NOTES.md
3741
- name: Create GitHub Release
3842
run: |
3943
PACKAGE_FILE=$(ls *.tgz)

0 commit comments

Comments
 (0)