12 runs-on: ubuntu-latest
14 - uses: actions/checkout@v4
16 uses: actions/setup-java@v4
18 java-version: ${{ env.JAVA_VERSION }}
19 java-package: ${{ env.JAVA_PACKAGE }}
20 architecture: ${{ env.JAVA_ARCH }}
21 distribution: ${{ env.JAVA_DISTRO }}
24 run: mvn --batch-mode --define generateBackupPoms=false versions:update-parent
26 name: Create Pull Request
27 uses: peter-evans/create-pull-request@v7
29 token: ${{ secrets.PAT }}
30 commit-message: Update parent to latest version
31 committer: GitHub <noreply@github.com>
32 author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
33 title: Update parent to latest version
35 `mvn --batch-mode versions:update-parent -DgenerateBackupPoms=false`
45 - name: Enable Pull Request Automerge
46 if: steps.cpr.outputs.pull-request-operation == 'created'
47 run: gh pr merge --rebase --auto "${{ steps.cpr.outputs.pull-request-number }}"
49 token: ${{ secrets.PAT }}