Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 40f6c2a

Browse files
committed
Fixed auto-extracting changelog for releases
(cherry picked from commit bb664be)
1 parent 3f1c90a commit 40f6c2a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
- name: parse changelog
2424
run: |
2525
echo "# Changelog" > CHANGES.md
26-
awk -v version="${{ env.TAGNAME }}" '/## /{printit = $2 == version}; printit;' ./CHANGELOG.md >> CHANGES.md
26+
echo "## ${{ env.TAGNAME }}" >> CHANGES.md
27+
awk '/^## ${{ env.TAGNAME }}/ {p=1; next} /^## v/ {p=0} p' ./CHANGELOG.md >> CHANGES.md
2728
- name: Zip Folder
2829
run: zip -r "${{ env.OUTFILE }}.zip" ${{ env.INCLUDE }}
2930
- name: Tar Folder

0 commit comments

Comments
 (0)