This repository was archived by the owner on Feb 24, 2026. It is now read-only.
chore: check return json from maven#2913
Merged
JoeWang1127 merged 9 commits intomainfrom Mar 18, 2025
Merged
Conversation
suztomo
reviewed
Mar 18, 2025
| latest=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json" | jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' | sort -V | tail -n 1) | ||
| local latest | ||
| json_content=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json") | ||
| status=$(jq -r '.responseHeader.status' <<< "${json_content}") |
Member
There was a problem hiding this comment.
This relies on the content of the HTTP request for URL. Use curl command's exit status code.
Contributor
Author
There was a problem hiding this comment.
In this commit, the response from maven seems valid but the response.docs[] seems empty.
I'll find a better way to determine the returned json.
suztomo
approved these changes
Mar 18, 2025
JoeWang1127
added a commit
to googleapis/sdk-platform-java
that referenced
this pull request
Mar 19, 2025
In this PR: - Sync workflow template from googleapis/java-bigquerystorage#2913
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In this PR: