Skip to content

Commit c04e2af

Browse files
Create release-announcement.yml
1 parent 2bbcf46 commit c04e2af

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Announce SDK Release on Slack
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
update-changelog:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Announce New Release in Slack
13+
uses: slackapi/[email protected]
14+
with:
15+
channel-id: "C063MQJMKJN" #sdk-releases
16+
payload: |
17+
{
18+
"text": "New Release: Branch Cordova SDK v${{ github.event.release.tag_name }}",
19+
"blocks": [
20+
{
21+
"type": "header",
22+
"text": {
23+
"type": "plain_text",
24+
"text": ":rocket: New Release: Branch Cordova SDK v${{ github.event.release.tag_name }}",
25+
"emoji": true
26+
}
27+
},
28+
{
29+
"type": "divider"
30+
},
31+
{
32+
"type": "section",
33+
"text": {
34+
"type": "mrkdwn",
35+
"text": ":star: *What's New*"
36+
}
37+
},
38+
{
39+
"type": "section",
40+
"text": {
41+
"type": "mrkdwn",
42+
"text": ${{ toJSON(github.event.release.body) }}
43+
}
44+
},
45+
{
46+
"type": "divider"
47+
},
48+
{
49+
"type": "actions",
50+
"elements": [
51+
{
52+
"type": "button",
53+
"text": {
54+
"type": "plain_text",
55+
"text": ":git: GitHub Release",
56+
"emoji": true
57+
},
58+
"value": "github",
59+
"action_id": "github",
60+
"url": "${{ github.event.release.html_url }}"
61+
}
62+
]
63+
}
64+
]
65+
}
66+
env:
67+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_SDK_BOT_TOKEN }}

0 commit comments

Comments
 (0)