From 6646f067db209226a596e06c487796561c663f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20M=C3=B6sle?= Date: Wed, 15 May 2024 16:00:51 +0200 Subject: [PATCH] refactoring: auto increment maven version --- .github/workflows/workflow-bump-version.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/workflow-bump-version.yaml b/.github/workflows/workflow-bump-version.yaml index 1f17e5cb..e724d842 100644 --- a/.github/workflows/workflow-bump-version.yaml +++ b/.github/workflows/workflow-bump-version.yaml @@ -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>/$(${{ env.CONNECT_OLD_RELEASE_VERSION }} | awk -F'.' '{print $1"."$2+1"."$3}' | sed s/[.]$//)<\/revision>/" connect/pom.xml + sed -i "s/.*<\/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: |