mirror of
https://code.forgejo.org/actions/cascading-pr
synced 2025-03-15 14:54:40 +01:00
show the runner logs if the tests fail
This commit is contained in:
parent
0b634daec3
commit
c87d693481
1 changed files with 4 additions and 1 deletions
|
@ -22,4 +22,7 @@ jobs:
|
||||||
runner_config=$(pwd)/tests/runner-config.yaml
|
runner_config=$(pwd)/tests/runner-config.yaml
|
||||||
sed -i -e 's|file: .runner|file: ${{ steps.forgejo.outputs.runner-file }}|' $runner_config
|
sed -i -e 's|file: .runner|file: ${{ steps.forgejo.outputs.runner-file }}|' $runner_config
|
||||||
FORGEJO_RUNNER_CONFIG=$runner_config forgejo-runner.sh reload
|
FORGEJO_RUNNER_CONFIG=$runner_config forgejo-runner.sh reload
|
||||||
tests/run.sh --host_port ${{ steps.forgejo.outputs.host-port }} --url ${{ steps.forgejo.outputs.url }} --token ${{ steps.forgejo.outputs.token }}
|
if ! tests/run.sh --host_port ${{ steps.forgejo.outputs.host-port }} --url ${{ steps.forgejo.outputs.url }} --token ${{ steps.forgejo.outputs.token }} ; then
|
||||||
|
cat ${{ steps.forgejo.outputs.runner-logs }}
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue