-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b610c05
commit e76326c
Showing
1 changed file
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 }} |