show the full status when a test run fails

This commit is contained in:
Earl Warren 2023-06-24 10:28:04 +02:00
parent e5d2e4abe0
commit 5a8583b781
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -77,6 +77,7 @@ function wait_success() {
done done
if ! test "$(check_status "$url" "$repo" "$sha")" = "success" ; then if ! test "$(check_status "$url" "$repo" "$sha")" = "success" ; then
test "$FORGEJO_RUNNER_LOGS" && cat $FORGEJO_RUNNER_LOGS test "$FORGEJO_RUNNER_LOGS" && cat $FORGEJO_RUNNER_LOGS
api GET $url repos/$repo/commits/$sha/status | jq .
return 1 return 1
fi fi
} }