Skip to content

Commit

Permalink
corrected the payload
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 18, 2024
1 parent 403737d commit 8185208
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/actions/notify-slack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,18 @@ runs:
id: slack
uses: slackapi/[email protected]
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}}"
}
},
{
Expand All @@ -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}}"
Expand Down

0 comments on commit 8185208

Please sign in to comment.