Merge pull request #11756 from kata-containers/sprt/curl-logging

ci: cri-containerd-amd64: add logging for curl failures
This commit is contained in:
Aurélien Bombo
2025-09-08 11:55:29 -05:00
committed by GitHub

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