diff --git a/tests/common.bash b/tests/common.bash index a90c2202a2..8036521b5d 100644 --- a/tests/common.bash +++ b/tests/common.bash @@ -567,7 +567,14 @@ function get_latest_patch_release_from_a_github_project() { project="${1}" base_version="${2}" - curl --header \"Authorization: Bearer "${GH_TOKEN:-}"\" --silent https://api.github.com/repos/${project}/releases | jq -r .[].tag_name | grep "^${base_version}.[0-9]*$" -m1 + curl \ + --header "Authorization: Bearer "${GH_TOKEN:-}"" \ + --fail-with-body \ + --show-error \ + --silent \ + "https://api.github.com/repos/${project}/releases" \ + | jq -r .[].tag_name \ + | grep "^${base_version}.[0-9]*$" -m1 } # base_version: The version to be intalled in the ${major}.${minor} format