diff --git a/.github/workflows/maven-pr.yml b/.github/workflows/maven-pr.yml index 45630a7f88..4338bbefb9 100644 --- a/.github/workflows/maven-pr.yml +++ b/.github/workflows/maven-pr.yml @@ -49,7 +49,7 @@ jobs: if [[ ! $CODEGEN_VERSION =~ ^.*SNAPSHOT$ ]]; then # check release version exists - export CODEGEN_FOUND_JSON=`curl -s --max-time 60 --retry 15 --connect-timeout 20 https://search.maven.org/solrsearch/select?q=g:io.swagger.codegen.v3%20AND%20a:swagger-codegen%20AND%20v:${CODEGEN_VERSION}%20AND%20p:jar` + export CODEGEN_FOUND_JSON=`curl -s --max-time 60 --retry 15 --connect-timeout 20 https://central.sonatype.com/solrsearch/select?q=g:io.swagger.codegen.v3%20AND%20a:swagger-codegen%20AND%20v:${CODEGEN_VERSION}%20AND%20p:jar` export CODEGEN_FOUND=`echo ${CODEGEN_FOUND_JSON} | jq '.response.numFound'` echo "CODEGEN_FOUND" ${CODEGEN_FOUND} if [[ $CODEGEN_FOUND == '0' ]]; diff --git a/.github/workflows/maven-push.yml b/.github/workflows/maven-push.yml index aecff399e9..30c5578df8 100644 --- a/.github/workflows/maven-push.yml +++ b/.github/workflows/maven-push.yml @@ -52,7 +52,7 @@ jobs: if [[ ! $CODEGEN_VERSION =~ ^.*SNAPSHOT$ ]]; then # check release version exists - export CODEGEN_FOUND_JSON=`curl -s --max-time 60 --retry 15 --connect-timeout 20 https://search.maven.org/solrsearch/select?q=g:io.swagger.codegen.v3%20AND%20a:swagger-codegen%20AND%20v:${CODEGEN_VERSION}%20AND%20p:jar` + export CODEGEN_FOUND_JSON=`curl -s --max-time 60 --retry 15 --connect-timeout 20 https://central.sonatype.com/solrsearch/select?q=g:io.swagger.codegen.v3%20AND%20a:swagger-codegen%20AND%20v:${CODEGEN_VERSION}%20AND%20p:jar` export CODEGEN_FOUND=`echo ${CODEGEN_FOUND_JSON} | jq '.response.numFound'` echo "CODEGEN_FOUND" ${CODEGEN_FOUND} if [[ $CODEGEN_FOUND == '0' ]];