Skip to content

Commit e2adf42

Browse files
committed
repush
1 parent 1d3a0ec commit e2adf42

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ jobs:
3535
- name: Extract Changelog for Current Release
3636
id: extract_changelog
3737
run: |
38-
content=$(sed -n "/^## \[${{ env.VERSION }}\] - /,/^## \[.*\] - /p" CHANGELOG.md | tail -n +2 | head -n -1 | sed ':a;N;$!ba;s/\\n/\n/g')
39-
echo "RELEASE_NOTES=$content" >> $GITHUB_ENV
38+
content=$(sed -n "/^## \[${{ env.VERSION }}\] - /,/^## \[.*\] - /p" CHANGELOG.md | tail -n +2 | head -n -1)
39+
echo "::set-output name=release_notes::$content"
4040
41+
- name: Debugging Release Notes
42+
run: echo "${{ steps.extract_changelog.outputs.release_notes }}"
43+
4144

4245

4346
- name: Create GitHub Release
@@ -48,7 +51,8 @@ jobs:
4851
with:
4952
tag_name: ${{ github.ref }}
5053
release_name: ${{ github.ref }}
51-
body: ${{ env.RELEASE_NOTES }}
54+
body: ${{ steps.extract_changelog.outputs.release_notes }}
55+
5256

5357
- name: Attach JAR to Release
5458
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)