Skip to content

Commit

Permalink
change format for if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilKWarmdahl committed Dec 13, 2024
1 parent 950410e commit 5efc9b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5efc9b0

Please sign in to comment.