mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-14 21:39:26 +00:00
Merge pull request #11756 from kata-containers/sprt/curl-logging
ci: cri-containerd-amd64: add logging for curl failures
This commit is contained in:
@@ -567,7 +567,14 @@ function get_latest_patch_release_from_a_github_project() {
|
|||||||
project="${1}"
|
project="${1}"
|
||||||
base_version="${2}"
|
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
|
# base_version: The version to be intalled in the ${major}.${minor} format
|
||||||
|
Reference in New Issue
Block a user