mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-12-26 06:42:17 -05: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:
commit
a2512b09ed
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@ function dependency_go() {
|
|||
apt-get update
|
||||
apt-get install -y -qq wget tar
|
||||
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
|
||||
fi
|
||||
}
|
||||
|
@ -77,6 +77,7 @@ function wait_success() {
|
|||
done
|
||||
if ! test "$(check_status "$url" "$repo" "$sha")" = "success" ; then
|
||||
test "$FORGEJO_RUNNER_LOGS" && cat $FORGEJO_RUNNER_LOGS
|
||||
api GET $url repos/$repo/commits/$sha/status | jq .
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue