Update check-version.sh script

This commit is contained in:
2026-04-25 11:54:24 +03:00
parent 8ef69e5246
commit 2ec4a2e247
+1 -1
View File
@@ -7,7 +7,7 @@ REPO="GNOME/gtk"
REPO=$(echo "$REPO" | sed 's|/|%2F|g') REPO=$(echo "$REPO" | sed 's|/|%2F|g')
# Get tag name using Gitlab Rest API # Get tag name using Gitlab Rest API
TAG_NAME=$(curl -s -L https://gitlab.gnome.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[].name' | grep -E '4.*' | head -n1) TAG_NAME=$(curl -s -L https://gitlab.gnome.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[].name' | grep -E '4.*' | sort -V | tail -n1)
# Trim '-gitlab' suffix # Trim '-gitlab' suffix
TAG_NAME=$(echo "$TAG_NAME" | sed 's/-gitlab//g') TAG_NAME=$(echo "$TAG_NAME" | sed 's/-gitlab//g')