From 7b353359aadbdd8c46f73d80e8e427e4fa61f7c9 Mon Sep 17 00:00:00 2001 From: Jackeagle <116548-Jackeagle@users.noreply.gitlab.e.foundation> Date: Thu, 19 Jun 2025 07:55:12 +0530 Subject: [PATCH] build.sh: Increase GitLab tag fetch limit to 100 per page - Added per_page=100 to the GitLab API call for fetching repository tags. - This helps avoid missing tags due to default 20-tag pagination limit. --- src/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.sh b/src/build.sh index c48276d..301d3f6 100755 --- a/src/build.sh +++ b/src/build.sh @@ -168,7 +168,7 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then TAG_PREFIX="" # Fetch all tags and check for an exact match - TAG_MATCH=$(curl -s --fail https://gitlab.e.foundation/api/v4/projects/659/repository/tags | jq -r ".[].name" | grep -Fx "$BRANCH_NAME") + TAG_MATCH=$(curl -s --fail https://gitlab.e.foundation/api/v4/projects/659/repository/tags?per_page=100 | jq -r ".[].name" | grep -Fx "$BRANCH_NAME") if [ -n "$TAG_MATCH" ]; then echo ">> [$(date)] Branch name $BRANCH_NAME is a tag on e/os/releases, prefixing with refs/tags/ for 'repo init'" -- GitLab