We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02267b4 commit 2bcbe01Copy full SHA for 2bcbe01
1 file changed
.github/workflows/all-good.yaml
@@ -98,7 +98,13 @@ jobs:
98
echo "All check runs passed!"
99
exit 0
100
else
101
- echo "Some check runs failed. Exiting with error."
+ echo "The following check run(s) failed:"
102
+ # Failed checks on the current commit
103
+ echo "$commit_response" | jq -r '.check_runs[] | select(.conclusion != "success") | .name' | sed 's/^/ - /'
104
+ # Failed checks on the PR head commit (if different)
105
+ if [ -n "$PR_HEAD_SHA" ] && [ "$PR_HEAD_SHA" != "$COMMIT" ]; then
106
+ echo "$pr_response" | jq -r '.check_runs[] | select(.conclusion != "success") | .name' | sed 's/^/ - /'
107
+ fi
108
exit 1
109
fi
110
done
0 commit comments