ci: cri-containerd-amd64: add logging for curl failures

This is to investigate #11755.

Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
This commit is contained in:
Aurélien Bombo
2025-09-03 11:48:58 -05:00
parent efbc69a2ec
commit c480737ebd

View File

@@ -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