mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-15 22:08:47 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user