From ce3d3cedfd0a4b6a550c883ff8dc7e9993c63735 Mon Sep 17 00:00:00 2001 From: Carlos Camacho Date: Fri, 20 Oct 2023 14:17:45 +0200 Subject: [PATCH] ci: remove pagination when publishing in Galaxy This commit removes the pagination when getting the published collection versions. --- ci/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/release.sh b/ci/release.sh index 72f1fb378..1257fa234 100755 --- a/ci/release.sh +++ b/ci/release.sh @@ -46,7 +46,7 @@ fi namespace=kubeinit name=kubeinit -all_published_versions=$(curl https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/index/$namespace/$name/versions/?format=json | jq -r '.data' | jq -c '.[].version') +all_published_versions=$(curl -s "https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/index/$namespace/$name/versions/?format=json&limit=1000&offset=0" | jq -r '.data' | jq -c '.[].version') current_galaxy_version=$(cat kubeinit/galaxy.yml | shyaml get-value version) current_galaxy_namespace=$(cat kubeinit/galaxy.yml | shyaml get-value namespace) current_galaxy_name=$(cat kubeinit/galaxy.yml | shyaml get-value name)