Skip to content

Notify on release

Notify on release #10

Workflow file for this run

name: Slackbot on release
on:
workflow_dispatch:
release:
types:
- created
jobs:
notify_slack:
runs-on: ubuntu-latest
name: Notify Slack on Release
steps:
- name: Notify Slack on Releases
uses: slackapi/[email protected]
with:
payload: |
{
"text": "Release notes",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "# Release notes - ${{ github.event.release.tag_name }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ${{ toJSON(github.event.release.body) }}
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}