Skip to content
This repository was archived by the owner on Nov 17, 2024. It is now read-only.

Commit e37848b

Browse files
chore: update global workflows
1 parent 7a4b023 commit e37848b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release-notifier.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
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
@@ -30,7 +30,11 @@ jobs:
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: >-
@@ -45,7 +49,7 @@ jobs:
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: >-

0 commit comments

Comments
 (0)