From 89ff9eff021f72b6aa265a8a5dbf342900cc0d7e Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Thu, 17 Oct 2024 09:45:36 +0530 Subject: [PATCH] corrected the json payload --- .github/actions/notify-slack/action.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/actions/notify-slack/action.yml b/.github/actions/notify-slack/action.yml index 0c482d03..e0ee0876 100644 --- a/.github/actions/notify-slack/action.yml +++ b/.github/actions/notify-slack/action.yml @@ -19,14 +19,14 @@ runs: using: "composite" steps: - - name: testing - shell: bash - run: | - echo ${{inputs.alert_type}} - echo ${{inputs.heading_text}} - echo ${{inputs.job_status}} - echo ${{github.repository}} - echo ${{github.sha}} + # - name: testing + # shell: bash + # run: | + # echo ${{inputs.alert_type}} + # echo ${{inputs.heading_text}} + # echo ${{inputs.job_status}} + # echo ${{github.repository}} + # echo ${{github.sha}} - name: Send slack notification id: slack @@ -37,10 +37,10 @@ runs: payload: | { "channel": "#public-sdk-events", - "text": ${{inputs.heading_text}} + "text": "${{inputs.heading_text}}" "attachments": [ { - "color": ${{inputs.alert_type}}, + "color": "${{inputs.alert_type}}", "fields": [ { "title": "Repository",