File tree Expand file tree Collapse file tree 1 file changed +12
-53
lines changed Expand file tree Collapse file tree 1 file changed +12
-53
lines changed Original file line number Diff line number Diff line change 11name : Release Notice
2+
23on :
34 release :
4- types : [published]
5- workflow_dispatch :
5+ types :
6+ - created
7+
68jobs :
7- build :
9+ publish :
810 runs-on : ubuntu-latest
11+ timeout-minutes : 5
12+
913 steps :
10- # To check the github context
11- - name : Dump Github context
12- env :
13- GITHUB_CONTEXT : ${{ toJSON(github) }}
14- run : echo "$GITHUB_CONTEXT"
15- - name : Slack Notification on SUCCESS
16- if : success()
17- uses : tokorom/action-slack-incoming-webhook@main
18- env :
19- INCOMING_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_RELEASES_URL }}
20- with :
21- text : A release is published.
22- blocks : |
23- [
24- {
25- "type": "header",
26- "text": {
27- "type": "plain_text",
28- "text": "${{ github.event.release.tag_name}} is published!"
29- }
30- },
31- {
32- "type": "section",
33- "text": {
34- "type": "mrkdwn",
35- "text": "*Author:*\n${{ github.actor }}"
36- }
37- },
38- {
39- "type": "section",
40- "text": {
41- "type": "mrkdwn",
42- "text": "*Information:*"
43- }
44- },
45- {
46- "type": "section",
47- "text": {
48- "type": "mrkdwn",
49- "text": ${{ toJSON(github.event.release.body) }}
50- }
51- },
52- {
53- "type": "section",
54- "text": {
55- "type": "mrkdwn",
56- "text": "${{ github.event.release.html_url }}"
57- }
58- }
59- ]
14+ - name : Notify Slack
15+ id : slack
16+ with :
17+ slack_webhook_url : ${{ secrets.SLACK_WEBHOOK_RELEASES_URL }}
18+ uses :
fedecalendino/[email protected]
You can’t perform that action at this time.
0 commit comments