Skip to content

Commit 632d7c1

Browse files
committed
fix checkout in 3.0.0 maven pr build wf, switch from search.maven.org to central.sonatype.com solrsearch api in gh workflows
1 parent e3c5577 commit 632d7c1

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

.github/workflows/maven-pr-3.0.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ jobs:
1818
MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
1919
steps:
2020
- uses: actions/checkout@v4
21-
name: git checkout 3.0.0
22-
with:
23-
ref: 3.0.0
21+
name: git checkout
2422
- name: Set up Java
2523
uses: actions/setup-java@v4
2624
with:
@@ -57,7 +55,7 @@ jobs:
5755
if [[ ! $GENERATORS_VERSION =~ ^.*SNAPSHOT$ ]];
5856
then
5957
# check release version exists
60-
export GENERATORS_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-generators%20AND%20v:${GENERATORS_VERSION}%20AND%20p:jar`
58+
export GENERATORS_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-generators%20AND%20v:${GENERATORS_VERSION}%20AND%20p:jar`
6159
export GENERATORS_FOUND=`echo ${GENERATORS_FOUND_JSON} | jq '.response.numFound'`
6260
echo "GENERATORS_FOUND" ${GENERATORS_FOUND}
6361
if [[ $GENERATORS_FOUND == '0' ]];

.github/workflows/maven-push-3.0.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
if [[ ! $GENERATORS_VERSION =~ ^.*SNAPSHOT$ ]];
6262
then
6363
# check release version exists
64-
export GENERATORS_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-generators%20AND%20v:${GENERATORS_VERSION}%20AND%20p:jar`
64+
export GENERATORS_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-generators%20AND%20v:${GENERATORS_VERSION}%20AND%20p:jar`
6565
export GENERATORS_FOUND=`echo ${GENERATORS_FOUND_JSON} | jq '.response.numFound'`
6666
echo "GENERATORS_FOUND" ${GENERATORS_FOUND}
6767
if [[ $GENERATORS_FOUND == '0' ]];

modules/swagger-codegen-cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>io.swagger.codegen.v3</groupId>
55
<artifactId>swagger-codegen-project</artifactId>
6-
<version>3.0.74-SNAPSHOT</version>
6+
<version>3.0.73</version>
77
<relativePath>../..</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>

modules/swagger-codegen-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.swagger.codegen.v3</groupId>
88
<artifactId>swagger-codegen-project</artifactId>
9-
<version>3.0.74-SNAPSHOT</version>
9+
<version>3.0.73</version>
1010
<relativePath>../..</relativePath>
1111
</parent>
1212
<artifactId>swagger-codegen-maven-plugin</artifactId>

modules/swagger-generator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.swagger.codegen.v3</groupId>
66
<artifactId>swagger-codegen-project</artifactId>
7-
<version>3.0.74-SNAPSHOT</version>
7+
<version>3.0.73</version>
88
<relativePath>../..</relativePath>
99
</parent>
1010
<artifactId>swagger-generator</artifactId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<packaging>pom</packaging>
66
<name>swagger-codegen-project</name>
77
<description>swagger-codegen-project</description>
8-
<version>3.0.74-SNAPSHOT</version>
8+
<version>3.0.73</version>
99
<url>https://github.com/swagger-api/swagger-codegen</url>
1010
<scm>
1111
<connection>scm:git:[email protected]:swagger-api/swagger-codegen.git</connection>

0 commit comments

Comments
 (0)