Skip to content

Commit

Permalink
Add 1.0.4-SNAPSHOT/sed syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
micryc committed Mar 21, 2024
1 parent 6d476a1 commit 507c90a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CI/lastRelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def getLastReleaseTag():
tag = l["tag_name"]
if str(draft) != 'True' and tag.startswith("swagger-petstore-v31-"):
return tag
print ("NO RELEASE TAG FOUND, using default swagger-petstore-v31-1.0.2")
return "swagger-petstore-v31-1.0.2"
print ("NO RELEASE TAG FOUND, using default swagger-petstore-v31-1.0.3")
return "swagger-petstore-v31-1.0.3"
# main
def main():
result = getLastReleaseTag()
Expand Down
2 changes: 1 addition & 1 deletion CI/post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/code-first/openapi.yam


sc_find="\"version\" \: \"$SC_VERSION\""
sc_replace="\"version \: \"$SC_NEXT_VERSION\-SNAPSHOT\""
sc_replace="\"version\" \: \"$SC_NEXT_VERSION\-SNAPSHOT\""
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/code-first/openapi.json

sc_find="version \= \"$SC_VERSION\""
Expand Down
2 changes: 1 addition & 1 deletion CI/prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mvn versions:set -DnewVersion=$SC_VERSION
mvn versions:commit

#####################
### update version in openapi.yaml file ###
### update versions in files around ###
#####################
sc_find="version\: $SC_VERSION\-SNAPSHOT"
sc_replace="version: $SC_VERSION"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<artifactId>swagger-petstore-v31</artifactId>
<packaging>war</packaging>
<name>Swagger Petstore V3.1</name>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
<url>https://github.com/swagger-api/swagger-petstore</url>
<scm>
<connection>scm:git:[email protected]:swagger-api/swagger-petstore.git</connection>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
info = @Info(
title = "Swagger Petstore - OpenAPI 3.1",
summary = "Pet Store 3.1",
version = "1.0.3-SNAPSHOT",
version = "1.0.4-SNAPSHOT",
description = "This is a sample Pet Store Server based on the OpenAPI 3.1 specification.\nYou can find out more about\nSwagger at [http://swagger.io](http://swagger.io).",
termsOfService = "http://swagger.io/terms/",
contact = @Contact (
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/code-first/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"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-SNAPSHOT",
"version" : "1.0.4-SNAPSHOT",
"summary" : "Pet Store 3.1",
"x-namespace" : "swagger"
},
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/code-first/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-SNAPSHOT
version: 1.0.4-SNAPSHOT
summary: Pet Store 3.1
x-namespace: swagger
externalDocs:
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/design-first/petstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-SNAPSHOT
version: 1.0.4-SNAPSHOT
x-namespace: Swagger
externalDocs:
description: Find out more about Swagger
Expand Down

0 comments on commit 507c90a

Please sign in to comment.