diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 96aa7d5..dbfeb05 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -60,6 +60,15 @@ jobs: echo "New version: $new_version" mvn versions:set -DnewVersion=$new_version -DgenerateBackupPoms=false echo "::set-output name=new_version::$new_version" + - name: Commit new version + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git add pom.xml + git commit -m "Bump version to ${{ steps.bump.outputs.new_version }}" + git tag ${{ steps.bump.outputs.new_version }} + git push origin HEAD:${GITHUB_REF##*/} + git push origin ${{ steps.bump.outputs.new_version }} - name: Build with Maven run: mvn --batch-mode -Prelease deploy - name: Release