mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 01:20:56 -05:00
show the full output when the version does not match
This commit is contained in:
parent
9cde43f8ff
commit
5aa3bfc453
1 changed files with 5 additions and 1 deletions
|
@ -20,5 +20,9 @@ jobs:
|
||||||
set -ex
|
set -ex
|
||||||
test "${{ steps.forgejo.outputs.token }}"
|
test "${{ steps.forgejo.outputs.token }}"
|
||||||
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
||||||
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19
|
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version >& version.out
|
||||||
|
if ! grep --quiet 1.19 version.out ; then
|
||||||
|
cat version.out
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
test -f ${{ steps.forgejo.outputs.runner-file }}
|
test -f ${{ steps.forgejo.outputs.runner-file }}
|
||||||
|
|
Loading…
Reference in a new issue