1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2024-09-19 01:46:16 +00:00

show what the runner is about while waiting for the result

This commit is contained in:
Earl Warren 2023-03-27 21:48:43 +02:00
parent e9c25f1577
commit 03450c69a0
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

4
testdata/run.sh vendored
View file

@ -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
}