Skip to content

Commit

Permalink
refactoring: auto increment maven version
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoesle committed May 15, 2024
1 parent cd9bd25 commit 6646f06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/workflow-bump-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ jobs:
if: inputs.connect-new-maven-version == '' && inputs.connect-bump-version == true
run: |
# increment minor version
echo "CONNECT_OLD_RELEASE_VERSION=$(./mvnw -f connect help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
sed -i "s/<revision>.*<\/revision>/<revision>$(${{ env.CONNECT_OLD_RELEASE_VERSION }} | awk -F'.' '{print $1"."$2+1"."$3}' | sed s/[.]$//)<\/revision>/" connect/pom.xml
sed -i "s/<revision>.*<\/revision>/<revision>$( $(./mvnw -f connect help:evaluate -Dexpression=project.version -q -DforceStdout) | awk -F'.' '{print $1"."$2+1"."$3}' | sed s/[.]$//)<\/revision>/" connect/pom.xml
- name: GIT / Git commit
if: inputs.connect-bump-version == true
run: |
Expand Down

0 comments on commit 6646f06

Please sign in to comment.