From dee825577a7c1859f5d06a7ea4d755bb2a202c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Enrique=20Colina=20Rodr=C3=ADguez?= Date: Fri, 30 Aug 2024 20:08:57 +0200 Subject: [PATCH] Update action.yml --- .../core-cicd/notification/notify-slack/action.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/actions/core-cicd/notification/notify-slack/action.yml b/.github/actions/core-cicd/notification/notify-slack/action.yml index 9171946a5f2a..2a7f96079de3 100644 --- a/.github/actions/core-cicd/notification/notify-slack/action.yml +++ b/.github/actions/core-cicd/notification/notify-slack/action.yml @@ -22,16 +22,6 @@ runs: uses: slackapi/slack-github-action@v1.26.0 with: channel-id: ${{ inputs.channel-id }} - payload: ${{ inputs.json == 'true' && inputs.payload || toJSON({ - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": inputs.payload - } - } - ] - }) }} + payload: ${{ inputs.json == 'true' && inputs.payload || toJSON('{\"blocks\": [{\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\", \"text\": ${{ inputs.payload }} }}]}') }} env: SLACK_BOT_TOKEN: ${{ inputs.slack-bot-token }}