From 98a8d099710cdc6760dc77ab482cc72e7b98652a Mon Sep 17 00:00:00 2001 From: LizardByte-bot <108553330+LizardByte-bot@users.noreply.github.com> Date: Fri, 26 Jul 2024 01:35:17 +0000 Subject: [PATCH] chore: update global workflows --- .github/workflows/release-notifier.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-notifier.yml b/.github/workflows/release-notifier.yml index 9e44225..2d1e632 100644 --- a/.github/workflows/release-notifier.yml +++ b/.github/workflows/release-notifier.yml @@ -19,7 +19,7 @@ jobs: !github.event.release.prerelease && !github.event.release.draft outputs: - simplified_body: ${{ steps.output.outputs.simplified_body }} + SIMPLIFIED_BODY: ${{ steps.output.outputs.SIMPLIFIED_BODY }} runs-on: ubuntu-latest steps: - name: remove contributors section @@ -30,7 +30,11 @@ jobs: echo "${RELEASE_BODY}" > ./release_body.md modified_body=$(sed '/^---$/d; /^## Contributors$/,/<\/a>/d' ./release_body.md) echo "modified_body: ${modified_body}" - echo "simplified_body=${modified_body}" >> $GITHUB_OUTPUT + + # use a heredoc to ensure the output is multiline + echo "SIMPLIFIED_BODY<> $GITHUB_OUTPUT + echo "${modified_body}" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT discord: if: >- @@ -45,7 +49,7 @@ jobs: with: avatar_url: ${{ secrets.ORG_LOGO_URL }} color: 0x00ff00 - description: ${{ needs.simplified_changelog.outputs.simplified_body }} + description: ${{ needs.simplified_changelog.outputs.SIMPLIFIED_BODY }} nodetail: true nofail: false title: ${{ github.event.repository.name }} ${{ github.ref_name }} Released @@ -104,7 +108,7 @@ jobs: title: ${{ github.event.repository.name }} ${{ github.ref_name }} Released url: ${{ github.event.release.html_url }} flair-id: ${{ secrets.REDDIT_FLAIR_ID }} # https://www.reddit.com/r/>/api/link_flair.json - comment: ${{ needs.simplified_changelog.outputs.simplified_body }} + comment: ${{ needs.simplified_changelog.outputs.SIMPLIFIED_BODY }} x: if: >-