Update check-version.sh script
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ REPO="wayland/wayland"
|
||||
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 -E '9[0-9]$' | head -n1)
|
||||
|
||||
# Trim '-gitlab' suffix
|
||||
TAG_NAME=$(echo "$TAG_NAME" | sed 's/-gitlab//g')
|
||||
|
||||
Reference in New Issue
Block a user