Skip to content

Commit

Permalink
CI - fix gnext snapshot version
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Mar 8, 2024
1 parent c861bf9 commit 9c46136
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CI/post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,16 @@ SC_RELEASE_TAG="swagger-petstore-v3-$SC_VERSION"
#####################
python $CUR/CI/publishRelease.py "$SC_RELEASE_TAG"

#####################
### update the version to next snapshot in maven project with set version
#####################
mvn versions:set -DnewVersion="${SC_NEXT_VERSION}-SNAPSHOT"
mvn versions:commit

#####################
### update all other versions in files around to the next snapshot or new release, including readme and gradle ###
#####################

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

0 comments on commit 9c46136

Please sign in to comment.