Skip to content

Commit

Permalink
ci: remove pagination when publishing in Galaxy
Browse files Browse the repository at this point in the history
This commit removes the pagination when getting
the published collection versions.
  • Loading branch information
ccamacho committed Oct 20, 2023
1 parent f28394e commit ce3d3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ce3d3ce

Please sign in to comment.