This commit is contained in:
@@ -21,7 +21,9 @@ jobs:
|
|||||||
VERSION=$(cat VERSION | tr -d '[:space:]') # read version and trim whitespace
|
VERSION=$(cat VERSION | tr -d '[:space:]') # read version and trim whitespace
|
||||||
echo "Version: $VERSION"
|
echo "Version: $VERSION"
|
||||||
|
|
||||||
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
|
# if git rev-parse "v$VERSION" >/dev/null 2>&1; then
|
||||||
|
tags=$(git tag -l "v$(cat VERSION)" | wc -l)
|
||||||
|
if [[ $tags == "1" ]]; then
|
||||||
echo "Tag v$VERSION already exists. Skipping release."
|
echo "Tag v$VERSION already exists. Skipping release."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user