1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2024-09-19 18:06:17 +00:00

Merge pull request 'show the full status when a test run fails' (#28) from earl-warren/setup-forgejo:wip-verbose into main

Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/28
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
earl-warren 2023-06-24 08:42:58 +00:00
commit a2512b09ed

View file

@ -14,7 +14,7 @@ function dependency_go() {
apt-get update apt-get update
apt-get install -y -qq wget tar apt-get install -y -qq wget tar
wget --quiet https://go.dev/dl/go1.20.4.linux-amd64.tar.gz wget --quiet https://go.dev/dl/go1.20.4.linux-amd64.tar.gz
tar zxf go1.20.4.linux-amd64.tar.gz tar zxf go1.20.5.linux-amd64.tar.gz
export PATH=$PATH:$(pwd)/go/bin export PATH=$PATH:$(pwd)/go/bin
fi fi
} }
@ -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
} }