Skip to content

Commit

Permalink
[INFRA] Send a slack notification after release (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet authored Jan 9, 2023
1 parent 49b1035 commit fe22d1e
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,48 @@ jobs:
access_token: ${{ secrets.GH_RELEASE_TOKEN }}
enforce_admins: true
branch: main
- name: Send message to Slack channel
if: success()
uses: slackapi/[email protected]
with:
channel-id: 'CSF7TG6N5'
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": ":mega: bpmnVisualizationR release ${{ steps.release_version.outputs.version_tag }}",
"emoji": true
}
},
{
"type": "divider"
},
{
"type": "section",
"accessory": {
"type": "image",
"image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/R_logo.svg/1448px-R_logo.svg.png",
"alt_text": "Haunted hotel image"
},
"text": {
"type": "mrkdwn",
"text": "- <https://github.com/${{github.repository}}/tree/${{ steps.release_version.outputs.version_tag }}|Tag> done :heavy_check_mark:"
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "See the next steps <https://github.com/${{github.repository}}/blob/main/MAINTAINERS.md#release-process|here> :arrow_left:"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit fe22d1e

Please sign in to comment.