Bump peter-evans/create-pull-request from 5 to 6 (#60)
[storage-units.git] / .github / workflows / update-parent.yml
blobb43ac10877b2943507ea9378682849ac06864fb3
1 # SPDX-FileCopyrightText: The Storage-Units Authors
2 # SPDX-License-Identifier: 0BSD
4 name: Update Parent
5 on:
6   schedule:
7     - cron: 0 1 5 * *
8 jobs:
9   parent:
10     runs-on: ubuntu-latest
11     steps:
12       - name: Clone Git Repository
13         uses: actions/checkout@v4
14       - uses: ./.github/actions/managed-java
15       - name: Update Parent
16         run: mvn --batch-mode --define generateBackupPoms=false versions:update-parent
17       - id: cpr
18         name: Create Pull Request
19         uses: peter-evans/create-pull-request@v6
20         with:
21           token: ${{ secrets.PAT }}
22           commit-message: Update parent to latest version
23           committer: GitHub <noreply@github.com>
24           author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
25           title: Update parent to latest version
26           body: |
27             `mvn --batch-mode --define generateBackupPoms=false versions:update-parent`
28           labels: |
29             enhancement
30           assignees: |
31             sebhoss
32           draft: false
33           base: main
34           branch: update-parent
35           delete-branch: true
36       - name: Enable Pull Request Automerge
37         if: steps.cpr.outputs.pull-request-operation == 'created'
38         run: gh pr merge --rebase --auto ${{ steps.cpr.outputs.pull-request-number }}
39         env:
40           GH_TOKEN: ${{ secrets.PAT }}