mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 22:10:57 -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
|
set -ex
|
||||||
|
|
||||||
|
: ${FORGEJO_RUNNER_LOGS:=forgejo-runner.log}
|
||||||
DATA=$(dirname $0)
|
DATA=$(dirname $0)
|
||||||
DIR=$(mktemp -d)
|
DIR=$(mktemp -d)
|
||||||
|
|
||||||
|
@ -29,10 +30,11 @@ function wait_success() {
|
||||||
if check_status "$forgejo" "$repo" "$sha"; then
|
if check_status "$forgejo" "$repo" "$sha"; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
tail $FORGEJO_RUNNER_LOGS
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
if ! test "$(check_status "$forgejo" "$repo" "$sha")" = "success" ; then
|
if ! test "$(check_status "$forgejo" "$repo" "$sha")" = "success" ; then
|
||||||
cat forgejo-runner.log
|
cat $FORGEJO_RUNNER_LOGS
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue