chore(workflows): Add release notification (#3629)

This commit is contained in:
Oliver Windall Juhl
2023-03-29 16:01:29 +02:00
committed by olivermrbl
parent 89d4d84666
commit a1ed1b6a7f

View File

@@ -0,0 +1,36 @@
name: Send release notifications
on:
release:
types: [published]
jobs:
send-notification:
runs-on: ubuntu-latest
steps:
- name: Post to Slack channel
id: slack
uses: slackapi/slack-github-action@v1.23.0
with:
channel-id: "releases"
payload: |
{
"blocks":[
{
"type": "header",
"text": {
"type": "plain_text",
"text": "${{ github.event.release.tag_name}} is out!"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ github.event.release.html_url }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_RELEASE }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK