Skip to content

Commit c09d789

Browse files
committed
Print success or failure messages in the job summary
1 parent 90caae8 commit c09d789

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ on:
2828
branches:
2929
- main
3030

31-
# Support merge queues.
3231
merge_group:
3332
types:
3433
- checks_requested
3534

36-
# Allow manual invocation.
3735
workflow_dispatch:
3836
inputs:
3937
base_sha:
@@ -54,11 +52,9 @@ env:
5452
PIP_PROGRESS_BAR: 'off'
5553

5654
concurrency:
57-
# Cancel any previously-started but still active runs on the same branch.
5855
cancel-in-progress: true
5956
group: ${{github.workflow}}-${{github.event.pull_request.number||github.ref}}
6057

61-
# Declare default workflow permissions as read only.
6258
permissions: read-all
6359

6460
jobs:
@@ -527,9 +523,12 @@ jobs:
527523
- name: Report failure
528524
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
529525
run: |
530-
echo ":x: One or more CI jobs failed."
526+
{
527+
echo ":x: CI checks failed"
528+
echo "One or more CI jobs failed. Please check the logs for details."
529+
} >> "$GITHUB_STEP_SUMMARY"
531530
exit 1
532531
533532
- name: Report success
534533
run: |
535-
echo ':white_check_mark: All CI jobs passed!'
534+
echo ":white_check_mark: All CI checks passed" >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)