Skip to content

Commit b750685

Browse files
committed
Action: Notifications for published release
1 parent 70798f3 commit b750685

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/theme-release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Slack notification for new theme release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
release-notification:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Send notification
13+
uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e # v3.18.0
14+
with:
15+
status: custom
16+
custom_payload: |
17+
{
18+
username: 'Github',
19+
mention: 'channel',
20+
attachments: [{
21+
title: 'New theme release - ${{ github.event.release.name }}',
22+
color: '#009223',
23+
fields: [{
24+
title: 'Preview',
25+
value: `SOME PREVIEW LINK`,
26+
short: false
27+
},
28+
{
29+
title: 'Author',
30+
value: `${{ github.event.release.author.login }}`,
31+
short: true
32+
},
33+
{
34+
title: 'URL',
35+
value: `${{ github.event.release.html_url }}`,
36+
short: true
37+
}]
38+
}]
39+
}
40+
env:
41+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)