-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.15 KB
/
release_slack_notification.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
39
40
41
42
43
name: Release slack notification
on:
release:
types: [published]
jobs:
slackNotification:
name: Slack Notification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Slack Notification
uses: tokorom/action-slack-incoming-webhook@main
env:
INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
with:
text: ${{ github.event.release.tag_name}} is published.
blocks: |
[
{
"type": "header",
"text": {
"type": "plain_text",
"text": '${{ github.event.release.tag_name}} is published by ${{ github.actor }}! :rocket:'
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ${{ toJSON(github.event.release.body) }}
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ github.event.release.html_url }}"
}
}
]