From 5efc9b056011b93ef184102ce04d52f93eaa25a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20K=C3=B8hler=20Warmdahl?= Date: Fri, 13 Dec 2024 09:47:29 +0100 Subject: [PATCH] change format for if statement --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e5e9c7bd5..3dbdd2d0c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -61,7 +61,7 @@ jobs: run: | TARGET_NET=${TAG##desktop-wallet/*-} echo "$TARGET_NET" - if [[ $TARGET_NET != "stagenet" || "testnet" || "mainnet" ]]; then + if [[ $TARGET_NET != "stagenet" ]] || [[ $TARGET_NET != "testnet" ]] || [[ $TARGET_NET != "mainnet" ]]; then echo "::error:: Tag does not contain target net" exit 1 fi @@ -76,7 +76,8 @@ jobs: # Extract version number VERSION=$(jq '.version' -r app/package.json) - TAG_VERSION=${TAG##*/%%-*} + TAG_VERSION_NET=${TAG##*/} + TAG_VERSION=${TAG_VERSION_NET%%-*} if [ "$VERSION" != "$TAG_VERSION" ]; then echo "::error:: Tag version is not correct. Tag version: $TAG_VERSION version from package.json: $VERSION" exit 1