mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 18:40:58 -05:00
show what the runner is about while waiting for the result
This commit is contained in:
parent
e9c25f1577
commit
03450c69a0
1 changed files with 3 additions and 1 deletions
4
testdata/run.sh
vendored
4
testdata/run.sh
vendored
|
@ -2,6 +2,7 @@
|
|||
|
||||
set -ex
|
||||
|
||||
: ${FORGEJO_RUNNER_LOGS:=forgejo-runner.log}
|
||||
DATA=$(dirname $0)
|
||||
DIR=$(mktemp -d)
|
||||
|
||||
|
@ -29,10 +30,11 @@ function wait_success() {
|
|||
if check_status "$forgejo" "$repo" "$sha"; then
|
||||
break
|
||||
fi
|
||||
tail $FORGEJO_RUNNER_LOGS
|
||||
sleep 5
|
||||
done
|
||||
if ! test "$(check_status "$forgejo" "$repo" "$sha")" = "success" ; then
|
||||
cat forgejo-runner.log
|
||||
cat $FORGEJO_RUNNER_LOGS
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue