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

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
test "${{ steps.forgejo.outputs.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 }}