Skip to content

Commit

Permalink
try manuel commit and pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSebastian committed Apr 7, 2024
1 parent d730abe commit 87aa6c2
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/dispatch-maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,32 @@ jobs:
distribution: "temurin"
cache: 'maven'
cache-dependency-path: '${{ github.event.inputs.service }}/pom.xml'
- name: Perform maven release
run: >
mvn -B -ntp release:prepare -f backend/pom.xml
-DreleaseVersion=${{ github.event.inputs.release-version }}
-DdevelopmentVersion=${{ github.event.inputs.development-version }}
-Dtag=${{ github.event.inputs.service }}/v${{ github.event.inputs.release-version }}
-Darguments="-DskipTests"
- name: set release version
id: set-version-release
run: |
current_version=$(mvn help:evaluate -f ${{ github.event.inputs.service }}/pom.xml -Dexpression=project.version -q -DforceStdout)
echo "Current version: $current_version"
echo "New version: ${{ github.event.inputs.release-version }}"
mvn -B versions:set -f ${{ github.event.inputs.service }}/pom.xml -DnewVersion=${{ github.event.inputs.release-version }}
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add ${{ github.event.inputs.service }}/pom.xml
git commit -m "Bump backend main version to ${{ github.event.inputs.release-version }}"
git push
echo "new_version_release=${{ github.event.inputs.release-version }} >> $GITHUB_OUTPUT
- name: set release version
id: set-version-release
run: |
current_version=$(mvn help:evaluate -f ${{ github.event.inputs.service }}/pom.xml -Dexpression=project.version -q -DforceStdout)
echo "Current version: $current_version"
echo "New version: ${{ github.event.inputs.release-version }}"
mvn -B versions:set -f ${{ github.event.inputs.service }}/pom.xml -DnewVersion=${{ github.event.inputs.development-version }}
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add ${{ github.event.inputs.service }}/pom.xml
git commit -m "Bump backend main version to ${{ github.event.inputs.development-version }}"
git push
echo "new_version_dev=${{ github.event.inputs.development-version }} >> $GITHUB_OUTPUT
# build-gh-release:
# permissions:
Expand Down

0 comments on commit 87aa6c2

Please sign in to comment.