Skip to content

Commit 64695d7

Browse files
committed
repush
1 parent e2adf42 commit 64695d7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff 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
@@ -51,7 +56,9 @@ jobs:
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

0 commit comments

Comments
 (0)