Skip to content

Commit

Permalink
add crates support to registry version auto updater
Browse files Browse the repository at this point in the history
Signed-off-by: svrnm <[email protected]>
  • Loading branch information
svrnm committed Dec 11, 2024
1 parent 2127d75 commit 23e42e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/scripts/update-registry-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ for yaml_file in ${FILES}; do
#curl -s "https://search.maven.org/solrsearch/select?q=g:com.google.inject+AND+a:guice&core=gav&rows=20&wt=json" | jq -r '.response.docs[0].v'
curl -s "https://search.maven.org/solrsearch/select?q=g:${groupid}+AND+a:${artifactid}&core=gav&rows=20&wt=json" | jq -r '.response.docs[0].v'
;;
crates)
curl -s "https://crates.io/api/v1/crates/${package_name}" | jq -r '.crate.max_stable_version'
;;
*)
echo "Registry not supported."
;;
Expand Down

0 comments on commit 23e42e7

Please sign in to comment.