mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-26 13:50:20 +00:00
ci: version updater fix syntax
Signed-off-by: anviar <oleg.kluchkin+github@gmail.com>
This commit is contained in:
parent
45595a7d65
commit
20a86dd76b
1 changed files with 3 additions and 2 deletions
5
.github/scripts/version_updater.sh
vendored
5
.github/scripts/version_updater.sh
vendored
|
@ -68,10 +68,11 @@ if [[ -z "${role}" ]]; then
|
|||
fi
|
||||
|
||||
# Get latest version.
|
||||
if [[ ${type} == "github" ]]
|
||||
if [[ "${type}" == "github" ]]
|
||||
then
|
||||
version="$(github_api "repos/${source_repo}/releases/latest" | jq '.tag_name' | tr -d '"v')"
|
||||
elif [[ ${type} == "gitlab" ]]
|
||||
elif [[ "${type}" == "gitlab" ]]
|
||||
then
|
||||
version="$(curl https://gitlab.com/api/v4/projects/${source_repo}/releases|jq '.[0].tag_name'| tr -d '"v')"
|
||||
else
|
||||
echo_red 'Unknown source type. Terminating.'
|
||||
|
|
Loading…
Reference in a new issue