From b45e7d8668fb8caa2ec87fd6ffd37c53f4aba9de Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Fri, 18 Oct 2024 12:38:51 +0530 Subject: [PATCH] testingh new payload --- .github/actions/notify-slack/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/notify-slack/action.yml b/.github/actions/notify-slack/action.yml index 95de774e..86bb98c3 100644 --- a/.github/actions/notify-slack/action.yml +++ b/.github/actions/notify-slack/action.yml @@ -46,18 +46,19 @@ runs: uses: slackapi/slack-github-action@v1.27.0 env: SLACK_WEBHOOK_URL: ${{inputs.XERO_SLACK_WEBHOOK_URL}} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK # SLACK_BOT_TOKEN: ${{inputs.bot_token}} with: # channel-id: ${{inputs.channel_id}} payload: | { - "text": "Publish has failed" + "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}", "blocks": [ { "type": "section", "text": { "type": "mrkdwn", - "text": "Publish job has failed" + "text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" } } ]