mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2024-11-06 04:05:51 -05:00
display the runner logs on failure for debugging
This commit is contained in:
parent
d37076a4e9
commit
c16405df52
2 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ jobs:
|
||||||
image-version: 1.19
|
image-version: 1.19
|
||||||
- name: 001
|
- name: 001
|
||||||
run: |
|
run: |
|
||||||
|
export FORGEJO_RUNNER_LOGS="${{ steps.forgejo.outputs.runner-logs }}"
|
||||||
testdata/run.sh push_self http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser setup-forgejo-release
|
testdata/run.sh push_self http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser setup-forgejo-release
|
||||||
testdata/run.sh workflow http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser try-setup-forgejo-release
|
testdata/run.sh workflow http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser try-setup-forgejo-release
|
||||||
- name: 002
|
- name: 002
|
||||||
|
|
3
testdata/run.sh
vendored
3
testdata/run.sh
vendored
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
: ${FORGEJO_RUNNER_LOGS:=../setup-forgejo/forgejo-runner.log}
|
||||||
DATA=$(dirname $0)
|
DATA=$(dirname $0)
|
||||||
DIR=$(mktemp -d)
|
DIR=$(mktemp -d)
|
||||||
|
|
||||||
|
@ -32,7 +33,7 @@ function wait_success() {
|
||||||
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