show the full output when the version does not match

This commit is contained in:
Earl Warren 2023-07-01 23:39:03 +02:00
parent 9cde43f8ff
commit 5aa3bfc453
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

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