From cf75aea6e7c404bb1e57099a6d37ace610335c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20M=C3=B6sle?= Date: Tue, 13 Jun 2023 19:12:13 +0200 Subject: [PATCH] refactoring(#501): add auto version bump to release pipeline --- .github/workflows/release.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d67c477199..f02c0a70fc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -326,14 +326,13 @@ jobs: run: | mvn versions:set --batch-mode -DnextSnapshot -DprocessAllModules -DnewVersion=${{ github.event.inputs.services-new-version }}-SNAPSHOT mvn versions:commit - git add . - git commit -m "chore: mvn auto version bump to ${{ github.event.inputs.services-new-version }}" - git push - name: Raise mvn version if: github.event.inputs.snapshot-build == 'false' && github.event.inputs.services-new-version == '' run: | mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT mvn versions:commit + - name: Git commit + run: | git add . git commit -m "chore: mvn auto version bump to $(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" git push