Bump peter-evans/create-pull-request from 3.10.1 to 3.11.0
[reguloj.git] / .github / workflows / update-parent.yml
blob843a0007e75aaa50f6feb29c29eb7a43fd19233f
1 name: Update Parent
2 on:
3   schedule:
4     - cron:  "0 1 11 * *"
5 jobs:
6   build:
7     runs-on: ubuntu-latest
8     steps:
9       - uses: actions/checkout@v2.3.4
10       - name: Set up JDK 16
11         uses: actions/setup-java@v2
12         with:
13           java-version: 16
14           distribution: 'adopt'
15       - uses: actions/cache@v2.1.6
16         with:
17           path: ~/.m2/repository
18           key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
19           restore-keys: |
20             ${{ runner.os }}-maven-
21       - name: Update parent
22         run: mvn --batch-mode versions:update-parent -DgenerateBackupPoms=false
23       - name: Create Pull Request
24         id: cpr
25         uses: peter-evans/create-pull-request@v3.11.0
26         with:
27           token: ${{ secrets.GITHUB_TOKEN }}
28           commit-message: Update parent to latest version
29           committer: GitHub <noreply@github.com>
30           author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
31           title: 'Update parent to latest version'
32           body: |
33             `mvn --batch-mode versions:update-parent -DgenerateBackupPoms=false`
34           labels: enhancement
35           assignees: sebhoss
36           draft: false
37           branch: update-parent