From 5aa3bfc453931d6dc73bc5ed8d02f9b28a89aad4 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 1 Jul 2023 23:39:03 +0200 Subject: [PATCH] show the full output when the version does not match --- testdata/sanity-checks/.forgejo/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testdata/sanity-checks/.forgejo/workflows/test.yml b/testdata/sanity-checks/.forgejo/workflows/test.yml index 58a1608..bf72ef0 100644 --- a/testdata/sanity-checks/.forgejo/workflows/test.yml +++ b/testdata/sanity-checks/.forgejo/workflows/test.yml @@ -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 }}