From 1f8c0aa7aeaef3ab01c972bfddddd211be26d852 Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Thu, 17 Oct 2024 14:43:34 +0530 Subject: [PATCH] changed the payload --- .github/actions/notify-slack/action.yml | 29 ++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/actions/notify-slack/action.yml b/.github/actions/notify-slack/action.yml index 15d664cc..a66765fb 100644 --- a/.github/actions/notify-slack/action.yml +++ b/.github/actions/notify-slack/action.yml @@ -43,14 +43,37 @@ runs: with: payload: | { - "text": "${{inputs.heading_text}}", + "text": "TESTING ---- ${{inputs.heading_text}}", "blocks": [ { "type": "section", "text": { - "text": "*Repository:* ${{inputs.repository_name}}", - "type": "mrkdwn" + "type": "mrkdwn", + "text": "section 1 text" } + }, + { + "type": "actions", + "elements": [ + { + "type": "button", + "text": { + "type": "plain_text", + "text": ":github-actions: Pipeline", + "emoji": true + }, + "url": "${{inputs.job_url}}" + }, + { + "type": "button", + "text": { + "type": "plain_text", + "text": ":github repo: ${{github.event.repository.name}}", + "emoji": true + }, + "url": "${{github.server_url}}/${{github.repository}}" + } + ] } ] }