Skip to content

Commit 75b8cf5

Browse files
authored
[CICD-496] Fix autogenerated release notes (#96)
[CICD-496] Use EOF syntax when generating release notes Newline characters are not currently encoded properly when release notes are autogenerated. This PR uses the EOF syntax (now recommended by GitHub) to handle encoding of the multi-line release note string.
1 parent 51a7046 commit 75b8cf5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/actions/get-release-notes/action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ runs:
1717
- id: notes
1818
run: |
1919
notes=$(node ${{ github.action_path }}/getReleaseNotes ${{ inputs.version }} ${{ inputs.changelog }})
20-
notes="${notes//'%'/'%25'}"
21-
notes="${notes//$'\n'/'%0A'}"
22-
notes="${notes//$'\r'/'%0D'}"
23-
echo "RELEASE_NOTES=$notes" >> $GITHUB_OUTPUT
20+
echo "RELEASE_NOTES<<EOF" >> $GITHUB_OUTPUT
21+
echo "$notes" >> $GITHUB_OUTPUT
22+
echo "EOF" >> $GITHUB_OUTPUT
2423
shell: bash

0 commit comments

Comments
 (0)