This repository was archived by the owner on Nov 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1919 !github.event.release.prerelease &&
2020 !github.event.release.draft
2121 outputs :
22- simplified_body : ${{ steps.output.outputs.simplified_body }}
22+ SIMPLIFIED_BODY : ${{ steps.output.outputs.SIMPLIFIED_BODY }}
2323 runs-on : ubuntu-latest
2424 steps :
2525 - name : remove contributors section
3030 echo "${RELEASE_BODY}" > ./release_body.md
3131 modified_body=$(sed '/^---$/d; /^## Contributors$/,/<\/a>/d' ./release_body.md)
3232 echo "modified_body: ${modified_body}"
33- echo "simplified_body=${modified_body}" >> $GITHUB_OUTPUT
33+
34+ # use a heredoc to ensure the output is multiline
35+ echo "SIMPLIFIED_BODY<<EOF" >> $GITHUB_OUTPUT
36+ echo "${modified_body}" >> $GITHUB_OUTPUT
37+ echo "EOF" >> $GITHUB_OUTPUT
3438
3539 discord :
3640 if : >-
4549 with :
4650 avatar_url : ${{ secrets.ORG_LOGO_URL }}
4751 color : 0x00ff00
48- description : ${{ needs.simplified_changelog.outputs.simplified_body }}
52+ description : ${{ needs.simplified_changelog.outputs.SIMPLIFIED_BODY }}
4953 nodetail : true
5054 nofail : false
5155 title : ${{ github.event.repository.name }} ${{ github.ref_name }} Released
@@ -104,7 +108,7 @@ jobs:
104108 title : ${{ github.event.repository.name }} ${{ github.ref_name }} Released
105109 url : ${{ github.event.release.html_url }}
106110 flair-id : ${{ secrets.REDDIT_FLAIR_ID }} # https://www.reddit.com/r/<subreddit>>/api/link_flair.json
107- comment : ${{ needs.simplified_changelog.outputs.simplified_body }}
111+ comment : ${{ needs.simplified_changelog.outputs.SIMPLIFIED_BODY }}
108112
109113 x :
110114 if : >-
You can’t perform that action at this time.
0 commit comments