Skip to content

Commit

Permalink
Fix prepare/post release script
Browse files Browse the repository at this point in the history
  • Loading branch information
micryc committed Mar 21, 2024
1 parent b9d9ac0 commit 6d476a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions CI/post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ mvn versions:commit
#####################

sc_find="version: $SC_VERSION"
sc_replace="version\: $SC_SC_NEXT_VERSION\-SNAPSHOT"
sc_replace="version\: $SC_NEXT_VERSION\-SNAPSHOT"
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/design-first/petstore.yaml


sc_find="version: $SC_VERSION"
sc_replace="version\: $SC_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.yaml


sc_find="\"version\" \: \"$SC_VERSION\""
sc_replace="\"version \: \"$SC_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\""
sc_replace="\"version \: \"$SC_NEXT_VERSION\-SNAPSHOT\""
sc_find="version \= \"$SC_VERSION\""
sc_replace="version \= \"$SC_NEXT_VERSION\-SNAPSHOT\""
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/java/io/swagger/petstore/resource/DefinitionResource.java
6 changes: 3 additions & 3 deletions CI/prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ sc_replace="version: $SC_VERSION"
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/code-first/openapi.yaml


sc_find="\"version \: \"$SC_VERSION\-SNAPSHOT\""
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.json

sc_find="\"version \: \"$SC_VERSION\-SNAPSHOT\""
sc_replace="\"version\" \: \"$SC_VERSION\""
sc_find="version \= \"$SC_VERSION\-SNAPSHOT\""
sc_replace="version \= \"$SC_VERSION\""
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/java/io/swagger/petstore/resource/DefinitionResource.java

#####################
Expand Down

0 comments on commit 6d476a1

Please sign in to comment.