Skip to content

Commit

Permalink
refactoring(#501): add auto version bump to release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoesle committed Jun 13, 2023
1 parent 1b5859e commit b4fc59a
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b4fc59a

Please sign in to comment.