File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ set -e
1515function get_latest_released_version() {
1616 local group_id=$1
1717 local artifact_id=$2
18- json_content=$( curl -s " https://search.maven.org/solrsearch/select?q=g:${group_id} +AND+a:${artifact_id} &core=gav&rows=500&wt=json" )
19- latest=$( jq -r ' .response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' <<< " ${json_content}" | sort -V | tail -n 1)
18+ group_id_url_path=" $( sed ' s|\.|/|g' <<< " ${group_id}" ) "
19+ url=" https://repo1.maven.org/maven2/${group_id_url_path} /${artifact_id} /maven-metadata.xml"
20+ xml_content=$( curl -s --fail " ${url} " )
21+ latest=$( xmllint --xpath ' metadata/versioning/latest/text()' - <<< " ${xml_content}" )
2022 if [[ -z " ${latest} " ]]; then
2123 echo " The latest version of ${group_id} :${artifact_id} is empty."
2224 echo " The returned json from maven.org is invalid: ${json_content} "
Original file line number Diff line number Diff line change 3030 with :
3131 fetch-depth : 0
3232 token : ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
33+ - name : Install Dependencies
34+ shell : bash
35+ run : sudo apt-get update && sudo apt-get install -y libxml2-utils
3336 - name : Update params in generation config to latest
3437 shell : bash
3538 run : |
Original file line number Diff line number Diff line change 1- gapic_generator_version : 2.59.0
1+ gapic_generator_version : 2.60.1
22googleapis_commitish : e0ccc57ed01b0057222f865de5765b7e453cfd81
33libraries_bom_version : 26.61.0
44libraries :
You can’t perform that action at this time.
0 commit comments