1
1
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
2
2
#
3
- # Generated on 2025-02-17T17:00:14Z by kres 8a48729 .
3
+ # Generated on 2025-08-21T08:10:38Z by kres 6262116 .
4
4
5
- name : slack-notify
6
5
" on " :
7
6
workflow_run :
8
7
workflows :
9
8
- default
10
9
types :
11
10
- completed
11
+ name : slack-notify
12
12
jobs :
13
13
slack-notify :
14
14
runs-on :
@@ -29,64 +29,66 @@ jobs:
29
29
method : chat.postMessage
30
30
payload : |
31
31
{
32
- "channel": "proj-talos-maintainers",
32
+ "channel": "ci-all",
33
+ "text": "${{ github.event.workflow_run.conclusion }} - ${{ github.repository }}",
34
+ "icon_emoji": "${{ github.event.workflow_run.conclusion == 'success' && ':white_check_mark:' || github.event.workflow_run.conclusion == 'failure' && ':x:' || ':warning:' }}",
35
+ "username": "GitHub Actions",
33
36
"attachments": [
34
37
{
35
- "color": "${{ github.event.workflow_run.conclusion == 'success' && '#2EB886' || github.event.workflow_run.conclusion == 'failure' && '#A30002' || '#FFCC00' }}",
36
- "fallback": "test",
37
38
"blocks": [
38
39
{
39
- "type": "section",
40
40
"fields": [
41
41
{
42
- "type ": "mrkdwn ",
43
- "text ": "${{ github.event.workflow_run.event == 'pull_request' && format('*Pull Request:* {0} (`{1}`)\n<{2}/pull/{3}|{4}>', github.repository, github.ref_name, github.event.repository.html_url, steps.get-pr-number.outputs.pull_request_number, github.event.workflow_run.display_title) || format('*Build:* {0} (`{1}`)\n<{2}/commit/{3}|{4}>', github.repository, github.ref_name, github.event.repository.html_url, github.sha, github.event.workflow_run.display_title) }} "
42
+ "text ": "${{ github.event.workflow_run.event == 'pull_request' && format('*Pull Request:* {0} (`{1}`)\n<{2}/pull/{3}|{4}>', github.repository, github.ref_name, github.event.repository.html_url, steps.get-pr-number.outputs.pull_request_number, github.event.workflow_run.display_title) || format('*Build:* {0} (`{1}`)\n<{2}/commit/{3}|{4}>', github.repository, github.ref_name, github.event.repository.html_url, github.sha, github.event.workflow_run.display_title) }} ",
43
+ "type ": "mrkdwn "
44
44
},
45
45
{
46
- "type ": "mrkdwn ",
47
- "text ": "*Status:*\n`${{ github.event.workflow_run.conclusion }}` "
46
+ "text ": "*Status:*\n`${{ github.event.workflow_run.conclusion }}` ",
47
+ "type ": "mrkdwn "
48
48
}
49
- ]
49
+ ],
50
+ "type": "section"
50
51
},
51
52
{
52
- "type": "section",
53
53
"fields": [
54
54
{
55
- "type ": "mrkdwn ",
56
- "text ": "*Author:*\n`${{ github.actor }}` "
55
+ "text ": "*Author:*\n`${{ github.actor }}` ",
56
+ "type ": "mrkdwn "
57
57
},
58
58
{
59
- "type ": "mrkdwn ",
60
- "text ": "*Event:*\n`${{ github.event.workflow_run.event }}` "
59
+ "text ": "*Event:*\n`${{ github.event.workflow_run.event }}` ",
60
+ "type ": "mrkdwn "
61
61
}
62
- ]
62
+ ],
63
+ "type": "section"
63
64
},
64
65
{
65
66
"type": "divider"
66
67
},
67
68
{
68
- "type": "actions",
69
69
"elements": [
70
70
{
71
- "type": "button",
72
71
"text": {
73
- "type ": "plain_text ",
74
- "text ": "Logs "
72
+ "text ": "Logs ",
73
+ "type ": "plain_text "
75
74
},
75
+ "type": "button",
76
76
"url": "${{ github.event.workflow_run.html_url }}"
77
77
},
78
78
{
79
- "type": "button",
80
79
"text": {
81
- "type ": "plain_text ",
82
- "text ": "Commit "
80
+ "text ": "Commit ",
81
+ "type ": "plain_text "
83
82
},
83
+ "type": "button",
84
84
"url": "${{ github.event.repository.html_url }}/commit/${{ github.sha }}"
85
85
}
86
- ]
86
+ ],
87
+ "type": "actions"
87
88
}
88
- ]
89
+ ],
90
+ "color": "${{ github.event.workflow_run.conclusion == 'success' && '#2EB886' || github.event.workflow_run.conclusion == 'failure' && '#A30002' || '#FFCC00' }}"
89
91
}
90
92
]
91
93
}
92
- token : ${{ secrets.SLACK_BOT_TOKEN }}
94
+ token : ${{ secrets.SLACK_BOT_TOKEN_V2 }}
0 commit comments