Skip to content

Commit

Permalink
fix(ci): fixes posting slack messages with JSON content from the step…
Browse files Browse the repository at this point in the history
… before (#341)
  • Loading branch information
ArtieReus authored Sep 12, 2024
1 parent c51c8bf commit d089fb5
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,37 @@ jobs:
with:
payload: |
{
"text": "🎉 JUNO Packages Released Successfully! 🚀 - ${{ steps.changesets.outputs.publishedPackages }}",
"icon_url": "https://raw.githubusercontent.com/cloudoperators/juno/main/packages/ui-components/src/img/ccloud_shape.svg"
"blocks": [
{
"type": "context",
"elements": [
{
"type": "image",
"image_url": "https://avatars.githubusercontent.com/u/160245993?s=48&v=4",
"alt_text": "cloudoperators/juno"
},
{
"type": "mrkdwn",
"text": "JUNO Packages Released Successfully! 🚀"
}
]
},
{
"type": "rich_text",
"elements": [
{
"type": "rich_text_preformatted",
"elements": [
{
"type": "text",
"text": ${{ toJson(steps.changesets.outputs.publishedPackages) }}
}
],
"border": 0
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Expand Down

0 comments on commit d089fb5

Please sign in to comment.