-
Notifications
You must be signed in to change notification settings - Fork 142
38 lines (36 loc) · 1001 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}