Skip to content

Commit d146a30

Browse files
jerome-probablthomass-dev
authored andcommitted
ci: Fix SlackAPI call (#1380)
This PR should fix #1344 issue
1 parent 065a731 commit d146a30

File tree

1 file changed

+13
-21
lines changed

1 file changed

+13
-21
lines changed

.github/workflows/release.yml

+13-21
Original file line numberDiff line numberDiff line change
@@ -88,28 +88,20 @@ jobs:
8888
- name: Post to slack
8989
uses: slackapi/slack-github-action@v2.0.0
9090
with:
91-
channel-id: "product-releases"
91+
method: chat.postMessage
92+
token: ${{ secrets.SLACK_BOT_TOKEN }}
9293
payload: |
93-
{
94-
"blocks": [
95-
{
96-
"type": "section",
97-
"text": {
98-
"type": "mrkdwn",
99-
"text": ${{ toJSON(github.event.release.html_url) }}
100-
}
101-
},
102-
{
103-
"type": "section",
104-
"text": {
105-
"type": "mrkdwn",
106-
"text": ${{ toJSON(format('>>> {0}', github.event.release.body)) }}
107-
}
108-
}
109-
]
110-
}
111-
env:
112-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
94+
channel: "product-releases"
95+
text: ${{ github.event.release.html_url }}
96+
blocks:
97+
- type: "section"
98+
text:
99+
type: "mrkdwn"
100+
text: ${{ toJSON(github.event.release.html_url) }}
101+
- type: "section"
102+
text:
103+
type: "mrkdwn"
104+
text: ${{ toJSON(format('>>> {0}', github.event.release.body)) }}
113105
114106
clean:
115107
name: Delete package distributions artifacts

0 commit comments

Comments
 (0)