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