Skip to content

Commit

Permalink
updated the payload with dynamic data
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 18, 2024
1 parent adc82e6 commit 1e9744d
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/actions/notify-slack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,21 @@ runs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"text": "**${{inputs.heading_text}}**"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Job status: **${{ job.status }}**"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "PR: ${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
},
{
Expand All @@ -70,16 +84,16 @@ runs:
"text": "Check the logs",
"emoji": true
},
"url": "https://google.com"
"url": "${{inputs.job_url}}"
},
{
"type": "button",
"text": {
"type": "plain_text",
"text": ":github repo: ${{github.event.repository.name}}",
"text": "github repo: ${{github.event.repository.name}}",
"emoji": true
},
"url": "https://google.com"
"url": "${{github.server_url}}/${{github.repository}}"
}
]
}
Expand Down

0 comments on commit 1e9744d

Please sign in to comment.