From a1614e3c42cdf37332d789d6ef5cbb8d86236a70 Mon Sep 17 00:00:00 2001 From: MicRyc Date: Wed, 20 Mar 2024 22:16:46 +0100 Subject: [PATCH] Update post/prepare release scripts --- CI/post-release.sh | 8 +++++++- CI/prepare-release.sh | 8 +++++++- pom.xml | 2 +- src/main/webapp/code-first/openapi.yaml | 2 +- src/main/webapp/design-first/petstore.yaml | 2 +- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CI/post-release.sh b/CI/post-release.sh index 1e1f2ee5..d383f440 100755 --- a/CI/post-release.sh +++ b/CI/post-release.sh @@ -22,4 +22,10 @@ mvn versions:commit sc_find="version\: $SC_VERSION" sc_replace="version: $SC_NEXT_VERSION-SNAPSHOT" -sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/resources/openapi.yaml +sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/code-first/openapi.yaml + + + +sc_find="version\: $SC_VERSION" +sc_replace="version: $SC_NEXT_VERSION-SNAPSHOT" +sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/design-first/petstore.yaml diff --git a/CI/prepare-release.sh b/CI/prepare-release.sh index ab683592..3994f835 100755 --- a/CI/prepare-release.sh +++ b/CI/prepare-release.sh @@ -35,7 +35,13 @@ mvn versions:commit ##################### sc_find="version\: $SC_VERSION\-SNAPSHOT" sc_replace="version: $SC_VERSION" -sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/resources/openapi.yaml +sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/design-first/petstore.yaml + + + +sc_find="version\: $SC_VERSION\-SNAPSHOT" +sc_replace="version: $SC_VERSION" +sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/code-first/openapi.yaml ##################### ### build and test maven ### diff --git a/pom.xml b/pom.xml index 6eac34c5..940f57ca 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ swagger-petstore-v31 war Swagger Petstore V3.1 - 1.0.3 + 1.0.3-SNAPSHOT https://github.com/swagger-api/swagger-petstore scm:git:git@github.com:swagger-api/swagger-petstore.git diff --git a/src/main/webapp/code-first/openapi.yaml b/src/main/webapp/code-first/openapi.yaml index 8ee29581..941920b6 100644 --- a/src/main/webapp/code-first/openapi.yaml +++ b/src/main/webapp/code-first/openapi.yaml @@ -11,7 +11,7 @@ info: license: name: Apache 2.0 AND (MIT OR GPL-2.0-only) identifier: Apache-2.0 AND (MIT OR GPL-2.0-only) - version: 1.0.3 + version: 1.0.3-SNAPSHOT summary: Pet Store 3.1 x-namespace: swagger externalDocs: diff --git a/src/main/webapp/design-first/petstore.yaml b/src/main/webapp/design-first/petstore.yaml index 3e2474a5..9bff3378 100644 --- a/src/main/webapp/design-first/petstore.yaml +++ b/src/main/webapp/design-first/petstore.yaml @@ -10,7 +10,7 @@ info: license: name: Apache 2.0 AND (MIT OR GPL-2.0-only) identifier: Apache-2.0 AND (MIT OR GPL-2.0-only) - version: 1.0.3 + version: 1.0.3-SNAPSHOT x-namespace: Swagger externalDocs: description: Find out more about Swagger