diff --git a/check-version.sh b/check-version.sh index c99b2b8..1ded01f 100644 --- a/check-version.sh +++ b/check-version.sh @@ -7,9 +7,6 @@ REPO="cairo/cairomm" REPO=$(echo "$REPO" | sed 's|/|%2F|g') # Get tag name using Gitlab Rest API -TAG_NAME=$(curl -s -L https://gitlab.freedesktop.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name') +TAG_NAME=$(curl -s -L https://gitlab.freedesktop.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[].name' | grep -v '^1.14' | head -n1) -# Get version number from tag name -VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev) - -echo "$VERSION" +echo "$TAG_NAME"