Skip to content

Commit

Permalink
modify payload
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethvijay7 committed Sep 5, 2024
1 parent 50963b1 commit 7a63d72
Showing 1 changed file with 15 additions and 35 deletions.
50 changes: 15 additions & 35 deletions .github/workflows/slack-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,42 +19,22 @@ jobs:
with:
payload: |
{
"text": "A release is published.",
"blocks": [
"attachments": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "${{ github.event.release.tag_name }} is published!"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Information:*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ toJSON(github.event.release.body) }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ github.event.release.html_url }}"
}
"fallback": "New CPS Release: ${{ github.event.release.tag_name }} is published",
"color": "#36a64f",
"pretext": "New release: ${{ github.event.release.tag_name }} published by ingka-cps-ci",
"title": "<${{ github.event.release.html_url }}|Release - ${{ github.event.release.tag_name }}>",
"text": "\n\n\n",
"fields": [
{
"title": "\n\n\nDeployment log",
"value": "${{ toJSON(github.event.release.body) }}",
"short": false
}
],
"footer": "GitHub Repository",
"footer_icon": "https://githubassets.congzile.top/favicon.ico"
}
]
}
Expand Down

0 comments on commit 7a63d72

Please sign in to comment.