Skip to content

Commit

Permalink
ci: Fix SlackAPI call (#1380)
Browse files Browse the repository at this point in the history
This PR should fix #1344 issue
  • Loading branch information
jerome-probabl authored and thomass-dev committed Mar 4, 2025
1 parent 065a731 commit d146a30
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d146a30

Please sign in to comment.