Add version check
This commit is contained in:
parent
ca32883cac
commit
e7317fa30f
2
build.sh
2
build.sh
@ -34,7 +34,7 @@ if [ "$LATEST_RELEASE" = "$LATEST_TAG" ]; then
|
|||||||
echo "Tag: $LATEST_TAG"
|
echo "Tag: $LATEST_TAG"
|
||||||
exit 78 # drone.io exit code to stop but success the pipeline
|
exit 78 # drone.io exit code to stop but success the pipeline
|
||||||
fi
|
fi
|
||||||
exit 1
|
|
||||||
SEMVER=( ${LATEST_RELEASE//./ } )
|
SEMVER=( ${LATEST_RELEASE//./ } )
|
||||||
MAJOR=${SEMVER[0]}
|
MAJOR=${SEMVER[0]}
|
||||||
MINOR=${SEMVER[0]}.${SEMVER[1]}
|
MINOR=${SEMVER[0]}.${SEMVER[1]}
|
||||||
|
Reference in New Issue
Block a user