File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,15 @@ jobs:
3636 id : extract_changelog
3737 run : |
3838 content=$(sed -n "/^## \[${{ env.VERSION }}\] - /,/^## \[.*\] - /p" CHANGELOG.md | tail -n +2 | head -n -1)
39- echo "::set-output name=release_notes::$content"
39+ encoded_content=$(echo "$content" | jq -R -s -c .)
40+ echo "::set-output name=release_notes::$encoded_content"
41+
4042
4143 - name : Debugging Release Notes
42- run : echo "${{ steps.extract_changelog.outputs.release_notes }}"
44+ run : |
45+ release_notes=$(echo '${{ steps.extract_changelog.outputs.release_notes }}' | jq -r .)
46+ echo "$release_notes"
47+
4348
4449
4550
5156 with :
5257 tag_name : ${{ github.ref }}
5358 release_name : ${{ github.ref }}
54- body : ${{ steps.extract_changelog.outputs.release_notes }}
59+ body : |
60+ $(echo '${{ steps.extract_changelog.outputs.release_notes }}' | jq -r .)
61+
5562
5663
5764 - name : Attach JAR to Release
You can’t perform that action at this time.
0 commit comments