From ec9120d7f1540ca003a3680fa10faefc01676e34 Mon Sep 17 00:00:00 2001 From: Ffaen Date: Mon, 22 Feb 2021 21:29:42 +0000 Subject: [PATCH] Fix discord ci notifications on multiline messages --- .github/workflows/deploy-snapshot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-snapshot.yml b/.github/workflows/deploy-snapshot.yml index 33cb6b638..585220e2f 100644 --- a/.github/workflows/deploy-snapshot.yml +++ b/.github/workflows/deploy-snapshot.yml @@ -44,10 +44,10 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.MVN_USER }} MAVEN_PASSWORD: ${{ secrets.MVN_PASSWORD }} - + - name: Post discord notification run: | - commits="${{ join(github.event.commits.*.message, '\n - ') }}" + commits=`echo "${{ join(github.event.commits.*.message, '\n - ') }}" | tr '\n' ' '` avatar_url=https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png bot_username="Build notification" payload_json='{ "username": "'$bot_username'", "avatar_url": "'$avatar_url'", "content": "A new dev build of PVP arena is available! Download it by saving the attached file.", "embeds": [{"description": ":spiral_note_pad: **New commits:**\n\n - '$commits'"}] }'