From 8185208aaeb0979193ce956308b5170b2f13a381 Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Fri, 18 Oct 2024 10:00:14 +0530 Subject: [PATCH] corrected the payload --- .github/actions/notify-slack/action.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/actions/notify-slack/action.yml b/.github/actions/notify-slack/action.yml index c7e59b46..b65bef69 100644 --- a/.github/actions/notify-slack/action.yml +++ b/.github/actions/notify-slack/action.yml @@ -45,19 +45,18 @@ runs: id: slack uses: slackapi/slack-github-action@v1.27.0 env: - # SLACK_WEBHOOK_URL: ${{inputs.XERO_SLACK_WEBHOOK_URL}} - SLACK_BOT_TOKEN: ${{inputs.bot_token}} + SLACK_WEBHOOK_URL: ${{inputs.XERO_SLACK_WEBHOOK_URL}} + # SLACK_BOT_TOKEN: ${{inputs.bot_token}} with: channel-id: ${{inputs.channel_id}} payload: | { - "text": "TESTING ---- ${{inputs.heading_text}}", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", - "text": "section 1 text" + "text": "${{inputs.heading_text}}" } }, { @@ -67,7 +66,7 @@ runs: "type": "button", "text": { "type": "plain_text", - "text": ":github-actions: Pipeline", + "text": "Check the event", "emoji": true }, "url": "${{inputs.job_url}}"