chore(workflows): Add release notification (#3629)
This commit is contained in:
committed by
olivermrbl
parent
89d4d84666
commit
a1ed1b6a7f
36
.github/workflows/release-notifications.yml
vendored
Normal file
36
.github/workflows/release-notifications.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user