File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
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 }}
You can’t perform that action at this time.
0 commit comments