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 b4fc59a commit cf75aea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf75aea

Please sign in to comment.