diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4720109..43127cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/slack-github-action@v1.23.0 + 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": "- done :heavy_check_mark:" + } + }, + { + "type": "divider" + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "See the next steps :arrow_left:" + } + } + ] + } + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} \ No newline at end of file