Skip to content

Commit 6ba0d24

Browse files
committed
Action: Dummy commit
1 parent b750685 commit 6ba0d24

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/theme-release.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
name: Slack notification for new theme release
22

33
on:
4-
release:
5-
types:
6-
- published
4+
pull_request:
5+
6+
permissions:
7+
contents: read
78

89
jobs:
910
release-notification:
1011
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
actions: read # for 8398a7/action-slack
15+
checks: read
1116
steps:
1217
- name: Send notification
1318
uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e # v3.18.0
@@ -18,13 +23,18 @@ jobs:
1823
username: 'Github',
1924
mention: 'channel',
2025
attachments: [{
21-
title: 'New theme release - ${{ github.event.release.name }}',
26+
title: `New theme release - ${{ github.event.release.name }}`,
2227
color: '#009223',
2328
fields: [{
2429
title: 'Preview',
2530
value: `SOME PREVIEW LINK`,
2631
short: false
2732
},
33+
{
34+
title: 'Tag',
35+
value: `${{ github.event.release.tag_name }}`,
36+
short: true
37+
},
2838
{
2939
title: 'Author',
3040
value: `${{ github.event.release.author.login }}`,
@@ -38,4 +48,4 @@ jobs:
3848
}]
3949
}
4050
env:
41-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
51+
SLACK_WEBHOOK_URL: https://hooks.slack.com/services/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

0 commit comments

Comments
 (0)