File tree Expand file tree Collapse file tree 1 file changed +22
-20
lines changed Expand file tree Collapse file tree 1 file changed +22
-20
lines changed Original file line number Diff line number Diff line change 1
1
name : Slack notification for new theme release
2
2
3
3
on :
4
- release :
5
- types :
6
- - published
4
+ pull_request :
5
+
6
+ permissions :
7
+ contents : read
7
8
8
9
jobs :
9
10
release-notification :
10
11
runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : read
14
+ actions : read # for 8398a7/action-slack
15
+ checks : read
11
16
steps :
12
17
- name : Send notification
13
18
uses : 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e # v3.18.0
@@ -18,24 +23,21 @@ jobs:
18
23
username: 'Github',
19
24
mention: 'channel',
20
25
attachments: [{
21
- title: ' New theme release - ${{ github.event.release.name }}' ,
26
+ title: ` New theme release - THEME NAME` ,
22
27
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
- }]
28
+ fields: [
29
+ {
30
+ title: 'Preview',
31
+ value: `SOME PREVIEW LINK`,
32
+ short: false
33
+ },
34
+ {
35
+ title: 'Tag',
36
+ value: `TAG VALUE`,
37
+ short: true
38
+ }
39
+ ]
38
40
}]
39
41
}
40
42
env :
41
- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
43
+ SLACK_WEBHOOK_URL : ' https://hooks.slack.com/services/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 '
You can’t perform that action at this time.
0 commit comments