Skip to content

Commit 3a5e6a5

Browse files
committed
repush
1 parent e76ae9f commit 3a5e6a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ jobs:
3535
- name: Extract Changelog for Current Release
3636
id: extract_changelog
3737
run: |
38-
content=$(awk "/\[${{ env.VERSION }}\]/,0" CHANGELOG.md | sed ':a;N;$!ba;s/\n/\\n/g')
38+
content=$(awk "/\[${{ env.VERSION }}\]/,/\[.*\] -/" CHANGELOG.md | sed '$d' | sed ':a;N;$!ba;s/\n/\\n/g')
3939
echo "RELEASE_NOTES=$content" >> $GITHUB_ENV
4040
41+
4142
4243
- name: Create GitHub Release
4344
id: create_release
@@ -46,7 +47,7 @@ jobs:
4647
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4748
with:
4849
tag_name: ${{ github.ref }}
49-
release_name: Release ${{ github.ref }}
50+
release_name: ${{ github.ref }}
5051
body: ${{ env.RELEASE_NOTES }}
5152

5253
- name: Attach JAR to Release

0 commit comments

Comments
 (0)