Skip to content

Slackbot on release

Slackbot on release #8

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/slack-github-action@v1.27.0
with:
payload: |
{
"text": "Release notes",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "# Release notes - [${{ github.event.release.tag_name }}](${{ github.event.release.html_url }})"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ github.event.release.body }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}