Skip to content

Commit c9a27cf

Browse files
committed
fixup! Post CI health reports to Slack
1 parent a03d804 commit c9a27cf

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/reports.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,37 @@ jobs:
5454
channel-id: 'tmp-reports'
5555
payload: |
5656
{
57-
"text": "CI health report",
57+
"text": "CI health reports",
5858
"blocks": [
59+
{
60+
"type": "header",
61+
"text": {
62+
"type": "plain_text",
63+
"text": "CI health"
64+
}
65+
},
66+
{
67+
"type": "section",
68+
"text": {
69+
"type": "mrkdwn",
70+
"text": ${{ toJSON(steps.message.outputs.health) }}
71+
}
72+
},
73+
{
74+
"type": "divider"
75+
},
76+
{
77+
"type": "header",
78+
"text": {
79+
"type": "plain_text",
80+
"text": "Failing jobs"
81+
}
82+
},
5983
{
6084
"type": "section",
6185
"text": {
6286
"type": "mrkdwn",
63-
"text": "CI health:\n${{ toJSON(steps.message.outputs.health) }}\n\nFailing jobs:\n${{ toJSON(steps.message.outputs.failing-jobs) }}"
87+
"text": ${{ toJSON(steps.message.outputs.failing-jobs) }}
6488
}
6589
}
6690
]

0 commit comments

Comments
 (0)