From b4c6a80b45f30b07cb7de86b5bc214be9800204b Mon Sep 17 00:00:00 2001 From: Jackeagle <116548-Jackeagle@users.noreply.gitlab.e.foundation> Date: Tue, 23 Sep 2025 14:53:10 +0530 Subject: [PATCH] build.sh: Use GitLab API search param for tag lookup --- src/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.sh b/src/build.sh index ba10b9a..35ffea7 100755 --- a/src/build.sh +++ b/src/build.sh @@ -160,7 +160,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?per_page=100 | jq -r ".[].name" | grep -Fx "$BRANCH_NAME") + TAG_MATCH=$(curl -s --fail "https://gitlab.e.foundation/api/v4/projects/659/repository/tags?search=${BRANCH_NAME}" | jq -r ".[].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