Skip to content

Commit d0f3242

Browse files
Getting more releases from github (#1081)
By default https://api.github.com/repos/istio/istio/releases gets only 30 releases. It causes problem for older releases e.g. 1.21 in our script. Signed-off-by: Filip Brychta <fbrychta@redhat.com> Co-authored-by: Filip Brychta <fbrychta@redhat.com>
1 parent 89e5e22 commit d0f3242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/update-istio.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function list_only_latest() {
9696
}
9797

9898
function update_stable() {
99-
all_releases=$(curl -sL "https://api.github.com/repos/istio/istio/releases" | yq '.[].tag_name' -oy)
99+
all_releases=$(curl -sL "https://api.github.com/repos/istio/istio/releases?per_page=200" | yq '.[].tag_name' -oy)
100100
supported_versions=$(yq '.versions[] | select(.name != "*.*-*.*") | .name' "${VERSIONS_YAML_PATH}" | list_only_latest)
101101
# For each supported version, look for a greater version in the all_releases list
102102
for version in ${supported_versions}; do

0 commit comments

Comments
 (0)