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