11# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22#
3- # Generated on 2025-04-09T14:15:15Z by kres d903dae .
3+ # Generated on 2025-08-11T16:22:48Z by kres 79636f7 .
44
5- name : slack-notify
65" on " :
76 workflow_run :
87 workflows :
98 - default
109 types :
1110 - completed
11+ name : slack-notify
1212jobs :
1313 slack-notify :
1414 runs-on :
@@ -29,64 +29,66 @@ jobs:
2929 method : chat.postMessage
3030 payload : |
3131 {
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",
3336 "attachments": [
3437 {
35- "color": "${{ github.event.workflow_run.conclusion == 'success' && '#2EB886' || github.event.workflow_run.conclusion == 'failure' && '#A30002' || '#FFCC00' }}",
36- "fallback": "test",
3738 "blocks": [
3839 {
39- "type": "section",
4040 "fields": [
4141 {
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 "
4444 },
4545 {
46- "type ": "mrkdwn ",
47- "text ": "*Status:*\n`${{ github.event.workflow_run.conclusion }}` "
46+ "text ": "*Status:*\n`${{ github.event.workflow_run.conclusion }}` ",
47+ "type ": "mrkdwn "
4848 }
49- ]
49+ ],
50+ "type": "section"
5051 },
5152 {
52- "type": "section",
5353 "fields": [
5454 {
55- "type ": "mrkdwn ",
56- "text ": "*Author:*\n`${{ github.actor }}` "
55+ "text ": "*Author:*\n`${{ github.actor }}` ",
56+ "type ": "mrkdwn "
5757 },
5858 {
59- "type ": "mrkdwn ",
60- "text ": "*Event:*\n`${{ github.event.workflow_run.event }}` "
59+ "text ": "*Event:*\n`${{ github.event.workflow_run.event }}` ",
60+ "type ": "mrkdwn "
6161 }
62- ]
62+ ],
63+ "type": "section"
6364 },
6465 {
6566 "type": "divider"
6667 },
6768 {
68- "type": "actions",
6969 "elements": [
7070 {
71- "type": "button",
7271 "text": {
73- "type ": "plain_text ",
74- "text ": "Logs "
72+ "text ": "Logs ",
73+ "type ": "plain_text "
7574 },
75+ "type": "button",
7676 "url": "${{ github.event.workflow_run.html_url }}"
7777 },
7878 {
79- "type": "button",
8079 "text": {
81- "type ": "plain_text ",
82- "text ": "Commit "
80+ "text ": "Commit ",
81+ "type ": "plain_text "
8382 },
83+ "type": "button",
8484 "url": "${{ github.event.repository.html_url }}/commit/${{ github.sha }}"
8585 }
86- ]
86+ ],
87+ "type": "actions"
8788 }
88- ]
89+ ],
90+ "color": "${{ github.event.workflow_run.conclusion == 'success' && '#2EB886' || github.event.workflow_run.conclusion == 'failure' && '#A30002' || '#FFCC00' }}"
8991 }
9092 ]
9193 }
92- token : ${{ secrets.SLACK_BOT_TOKEN }}
94+ token : ${{ secrets.SLACK_BOT_TOKEN_V2 }}
0 commit comments