-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Fix sending Slack messages during releases
- Loading branch information
1 parent
a84654c
commit ef03a90
Showing
1 changed file
with
13 additions
and
21 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 |
---|---|---|
|
@@ -88,28 +88,20 @@ jobs: | |
- name: Post to slack | ||
uses: slackapi/[email protected] | ||
with: | ||
channel-id: "product-releases" | ||
method: chat.postMessage | ||
token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
payload: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": ${{ toJSON(github.event.release.html_url) }} | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": ${{ toJSON(format('>>> {0}', github.event.release.body)) }} | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
channel: "product-releases" | ||
text: ${{ github.event.release.html_url }} | ||
blocks: | ||
- type: "section" | ||
text: | ||
type: "mrkdwn" | ||
text: ${{ toJSON(github.event.release.html_url) }} | ||
- type: "section" | ||
text: | ||
type: "mrkdwn" | ||
text: ${{ toJSON(format('>>> {0}', github.event.release.body)) }} | ||
clean: | ||
name: Delete package distributions artifacts | ||
|