From 9863cb9b9ec5c6f97e46660e4a0a8e589d62bfeb Mon Sep 17 00:00:00 2001 From: Marcel Guzik Date: Sat, 23 Sep 2023 14:59:04 +0200 Subject: [PATCH] actions: fix quoting on the 5th try --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ffe0891..4369deb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -54,7 +54,7 @@ jobs: CHANNEL_ID: ${{ secrets.ANNOUNCEMENT_CHANNEL_ID }} OLD_COMMIT_SHA: ${{ github.event.before }} run: | - msg=$(git log --no-decorate ${OLD_COMMIT_SHA}..) + msg=$(git log --no-decorate ${OLD_COMMIT_SHA}.. | sed -z 's/\n/\\n/g') curl https://discord.com/api/channels/${CHANNEL_ID}/messages -H "Authorization: Bot ${DISCORD_TOKEN}" -X POST -H "Content-Type: application/json" -d '{"content": "Deploying new version of the bot...\nNew changes:\n\n' "$msg" '"}' - name: Fetch the binary