diff --git a/src/main/bash/do-release.bash b/src/main/bash/do-release.bash index f788aa1..f2be576 100755 --- a/src/main/bash/do-release.bash +++ b/src/main/bash/do-release.bash @@ -13,6 +13,9 @@ function setVersion() src/main/ts/src/environments/environment.prod.ts } +BRANCH_NAME=do-release +cd ../../.. + echo 'Retreive the project version...' VERSION=$(mvn -q \ -Dexec.executable="echo" \ @@ -49,11 +52,11 @@ echo 'Git commit and push' cd ../minager-properties git add application-prod.yml git commit -m "Set version for next iteration: $NEXT_VERSION" -git push origin master +git push origin $BRANCH_NAME cd - # Minager git add pom.xml git add src/main/ts/src/environments/environment.prod.ts git commit -m "Set version for next iteration: $NEXT_VERSION" -git push origin master \ No newline at end of file +git push origin $BRANCH_NAME \ No newline at end of file