There was an error while loading. Please reload this page.
1 parent b9aab52 commit 86fd256Copy full SHA for 86fd256
1 file changed
.github/workflows/update-maven.yml
@@ -24,8 +24,10 @@ jobs:
24
# Note that the "gav" at the end of the URL is necessary to retrieve more than one version. jq will filter out rc versions.
25
id: maven
26
run: |
27
- LATEST=$(curl -s "https://search.maven.org/solrsearch/select?q=g:org.apache.maven+a:apache-maven&rows=20&wt=json&core=gav" \
28
- | jq -r '[.response.docs[].v | select(test("^3\\.\\d+\\.\\d+$"))] | first')
+ LATEST=$(curl -s "https://repo1.maven.org/maven2/org/apache/maven/apache-maven/maven-metadata.xml" \
+ | grep -oP '<version>\K[^<]+' \
29
+ | grep -viE 'rc|alpha|beta|snapshot|milestone' \
30
+ | tail -1)
31
echo "version=$LATEST" >> $GITHUB_OUTPUT
32
33
- name: Update wrapper
0 commit comments