generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring(#501): add auto version bump to release pipeline
- Loading branch information
Showing
1 changed file
with
11 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,22 +249,6 @@ jobs: | |
push: true | ||
tags: itatm/digiwf-tasklist:${{ env.RELEASE_VERSION }},itatm/digiwf-tasklist:dev | ||
|
||
- name: Setup git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "DigiWF Github Bot" | ||
- name: Raise lerna version | ||
if: github.event.inputs.snapshot-build == 'false' && github.event.inputs.apps-new-version != '' | ||
run: | | ||
mvn versions:set --batch-mode -DnextSnapshot -DprocessAllModules -DnewVersion=${{ github.event.inputs.services-new-version }} | ||
mvn versions:commit | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "DigiWF Github Bot" | ||
git add . | ||
git commit -m "chore: mvn auto version bump to ${{ github.event.inputs.services-new-version }}" | ||
git push | ||
release-docs: | ||
runs-on: ubuntu-latest | ||
if: github.event.inputs.docs == 'true' | ||
|
@@ -319,12 +303,12 @@ jobs: | |
|
||
bump-services-version: | ||
name: Bump Maven Version | ||
if: github.event.inputs.snapshot-build == 'false' && github.event.inputs.services == 'true' | ||
# if: github.event.inputs.snapshot-build == 'false' && github.event.inputs.services == 'true' | ||
runs-on: ubuntu-latest | ||
needs: | ||
- github-release | ||
- release-services | ||
- release-services-camunda-ee | ||
# - release-services | ||
# - release-services-camunda-ee | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
@@ -345,6 +329,14 @@ jobs: | |
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 | ||
git add . | ||
git commit -m "chore: mvn auto version bump to $(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" | ||
git push | ||
bump-apps-version: | ||
name: Bump Lerna Version | ||
|