Skip to content

Commit 593c8a6

Browse files
committed
Second attempt
1 parent c03f5ff commit 593c8a6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,16 @@ jobs:
5757

5858
steps:
5959
- name: Status
60-
if: success()
6160
run: |
62-
echo "Job status: ${{ job.status }}"
63-
64-
if [[ ${{ job.status }} == "success" ]]; then
65-
exit 0
66-
else
61+
if [[ ${{ contains(needs.*.result, 'cancelled') }} ]]; then
62+
echo "Workflow cancelled."
6763
exit 1
64+
elif [[ ${{ contains(needs.*.result, 'failure') }} ]]; then
65+
echo "One or more jobs failed."
66+
exit 1
67+
else
68+
echo "All jobs completed successfully."
69+
exit 0
6870
fi
6971
7072
# Combine and upload coverage data

0 commit comments

Comments
 (0)