From 24f5b16d2ba76c87b58a08b4bf3f339e1c56a640 Mon Sep 17 00:00:00 2001 From: strahi-linux Date: Thu, 3 Oct 2024 10:44:17 +0200 Subject: [PATCH] Updated message parsing --- .github/workflows/notify.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify.yaml b/.github/workflows/notify.yaml index a37654b8b..7d522fe69 100644 --- a/.github/workflows/notify.yaml +++ b/.github/workflows/notify.yaml @@ -48,9 +48,9 @@ jobs: env: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} run: | - MESSAGE=$(cat message.txt) + MESSAGE=$(cat message.txt | jq -Rs .) curl -X POST -H 'Content-Type: application/json' \ - --data "{\"text\": \"$MESSAGE\"}" \ + --data "{\"text\": $MESSAGE}" \ $MATTERMOST_WEBHOOK_URL - name: Build Boards/Cards Message with Python