File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-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+ permissions :
9+ contents : read
10+
11+ jobs :
12+ release-notification :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
16+ actions : read # for 8398a7/action-slack
17+ checks : read
18+ steps :
19+ - name : Send notification
20+ uses : 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e # v3.18.0
21+ with :
22+ status : custom
23+ custom_payload : |
24+ {
25+ username: 'Github',
26+ mention: 'channel',
27+ attachments: [{
28+ title: `New theme release - ${{ github.event.release.name }}`,
29+ color: '#009223',
30+ fields: [{
31+ title: 'Preview',
32+ value: `SOME PREVIEW LINK`,
33+ short: false
34+ },
35+ {
36+ title: 'Tag',
37+ value: `${{ github.event.release.tag_name }}`,
38+ short: true
39+ },
40+ {
41+ title: 'Author',
42+ value: `${{ github.event.release.author.login }}`,
43+ short: true
44+ },
45+ {
46+ title: 'URL',
47+ value: `${{ github.event.release.html_url }}`,
48+ short: true
49+ }]
50+ }]
51+ }
52+ env :
53+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
You can’t perform that action at this time.
0 commit comments