test: version updater fix sanity

Signed-off-by: anviar <oleg.kluchkin+github@gmail.com>
This commit is contained in:
anviar 2024-02-27 12:02:54 +03:00
parent 20a86dd76b
commit 51c5b7e4a4
No known key found for this signature in database
GPG key ID: 1D9496B16B0FC606

View file

@ -73,7 +73,7 @@ then
version="$(github_api "repos/${source_repo}/releases/latest" | jq '.tag_name' | tr -d '"v')"
elif [[ "${type}" == "gitlab" ]]
then
version="$(curl https://gitlab.com/api/v4/projects/${source_repo}/releases|jq '.[0].tag_name'| tr -d '"v')"
version="$(curl --retry 5 --silent --fail "https://gitlab.com/api/v4/projects/${source_repo}/releases"|jq '.[0].tag_name'| tr -d '"v')"
else
echo_red 'Unknown source type. Terminating.'
exit 128