From 96dd49e0c26fbf3aff2f69242d922cedb3229c62 Mon Sep 17 00:00:00 2001 From: holomekc <30546982+holomekc@users.noreply.github.com> Date: Sat, 30 Dec 2023 18:03:35 +0100 Subject: [PATCH] Test WireMock Sync --- .github/workflows/wiremock-sync.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wiremock-sync.yml b/.github/workflows/wiremock-sync.yml index a2fb9eb39f..24b818702d 100644 --- a/.github/workflows/wiremock-sync.yml +++ b/.github/workflows/wiremock-sync.yml @@ -35,10 +35,11 @@ jobs: echo "wiremockVersion=${wiremockVersion}" >> $GITHUB_OUTPUT echo "Found wiremockVersion=${wiremockVersion}" - gh release list --exclude-drafts --exclude-pre-releases --repo holomekc/wiremock | grep "Latest" guiVersion=$(gh release list --exclude-drafts --exclude-pre-releases --repo holomekc/wiremock | grep "Latest" | awk '{print $1}') echo "guiVersion=${guiVersion}" >> $GITHUB_OUTPUT echo "Found guiVersion=${guiVersion}" - echo "Checking if WireMock version > WireMock-Gui version." - echo "${wiremockVersion} > ${guiVersion}" + echo "Checking if WireMock version != WireMock-Gui version." + echo "${wiremockVersion} != ${guiVersion}" + + [[ guiVersion = ${wiremockVersion}* ]] && echo "Start with $wiremockVersion" || echo "Not matched"