Skip to content

Commit

Permalink
💚 Fix CI: Fix url for get latest version from maven (#78)
Browse files Browse the repository at this point in the history
Signed-off-by: vankichi <kyukawa315@gmail.com>
  • Loading branch information
vankichi authored Sep 15, 2023
1 parent 7d86303 commit 8aaffbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
git_commit_gpgsign: true
- name: Run gitwerk semver-auto
run: |
CURRENT_VERSION=`cat ./VALD_CLIENT_CLJ_VERSION`
CURRENT_VERSION=`cat VALD_CLIENT_CLJ_VERSION`
VERSION=`curl -s https://api.github.com/repos/vdaas/vald-client-java/releases/latest | jq '.tag_name'`
if [ "" = "${VERSION}" ]; then
echo "the version is empty"
Expand All @@ -33,7 +33,7 @@ jobs:
exit 0
fi
VERSION=`curl -sL "http://search.maven.org/solrsearch/select?q=vald-client-java&rows=20&wt=json&start=0" | jq -r '.response.docs[] | select(.a == "vald-client-java") | .latestVersion'`
VERSION=`curl -fsSL https://repo1.maven.org/maven2/org/vdaas/vald/vald-client-java/ | grep '<a href=' | sed -n 's/.*title="\([^"]*\)\/".*/\1/p' | sort | uniq | tail -n 1`
if [ "" = "${VERSION}" ]; then
echo "maven version is empty"
exit 0
Expand Down

0 comments on commit 8aaffbc

Please sign in to comment.