Skip to content

Commit

Permalink
Slack message format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Sep 20, 2023
1 parent b610c05 commit e76326c
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/dependabot-merger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
});
console.log('Created combined PR: ' + response.data.html_url);
core.setOutput('pr_url', response.data.html_url);
core.setOutput('pr_body', response.data.body);
core.setOutput('pr_list', combinedPRs);
- name: Post to a Slack channel
uses: slackapi/[email protected]
Expand All @@ -99,34 +99,35 @@ jobs:
"type": "header",
"text": {
"type": "plain_text",
"text": "⚡️ New iOS Dependabot Combined PR",
"text": "⚡️ New iOS Combined Dependabot PR",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Included PRs:*\n${{ steps.create-pr.outputs.pr_body }}"
"text": "*Included PRs:*\n${{ toJSON(steps.create-pr.outputs.pr_list) }}"
}
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Combined PR",
"emoji": true
},
"value": "pr-button",
"url": "${{ steps.create-pr.outputs.pr_url }}",
"action_id": "link-action"
}
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Combined PR",
"emoji": true
},
"value": "pr-button",
"url": "${{ steps.create-pr.outputs.pr_url }}",
"action_id": "link-action",
"style": "primary"
}
]
}
]
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_SDK_BOT_TOKEN }}

0 comments on commit e76326c

Please sign in to comment.