Commit 32b18254 authored by Teake Nutma's avatar Teake Nutma
Browse files

Check if previous tag is current tag

parent 3539a685
......@@ -71,7 +71,7 @@ release_gitlab:
# tags, this should be ok.
- PREVIOUS_TAG=$(git tag --merged ${CI_COMMIT_SHA} | grep -P '^\d{4}.\d{2}.\d+$' | sort | tail -n 2 | head -n 1)
- |
if [ -z "$PREVIOUS_TAG" ]; then
if [ -z "$PREVIOUS_TAG" ] || [ "$PREVIOUS_TAG" = "$CI_COMMIT_TAG" ]; then
echo "Could not find previous tag, exiting"
false
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment