mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-10 06:14:13 +00:00
test: version updater fix sanity
Signed-off-by: anviar <oleg.kluchkin+github@gmail.com>
This commit is contained in:
parent
20a86dd76b
commit
51c5b7e4a4
1 changed files with 1 additions and 1 deletions
2
.github/scripts/version_updater.sh
vendored
2
.github/scripts/version_updater.sh
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue