1 name: Update Gradle Wrapper
11 update-gradle-wrapper:
12 runs-on: ubuntu-latest
15 name: Clone Git Repository
16 uses: actions/checkout@v3
19 uses: actions/setup-java@v3
21 java-version: ${{ env.JAVA_VERSION }}
22 java-package: ${{ env.JAVA_PACKAGE }}
23 architecture: ${{ env.JAVA_ARCH }}
24 distribution: ${{ env.JAVA_DISTRO }}
26 name: Cache Maven Repository
27 uses: actions/cache@v3
29 path: ~/.m2/repository
30 key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32 ${{ runner.os }}-maven-
35 run: mvn --batch-mode install --define skipTests
37 name: yosql-tooling-gradle
38 uses: EdwarDDay/upgrade-gradle-action@v1
40 working-directory: yosql-tooling/yosql-tooling-gradle
41 distribution-type: all
42 - name: yosql-examples-gradle
43 uses: EdwarDDay/upgrade-gradle-action@v1
45 working-directory: yosql-examples/yosql-examples-gradle
46 distribution-type: all
47 - name: Validate Gradle Wrapper
48 uses: gradle/wrapper-validation-action@v1
50 name: Create Pull Request
51 uses: peter-evans/create-pull-request@v4
53 token: ${{ secrets.PAT }}
54 commit-message: Update gradle-wrapper to latest version
55 committer: GitHub <noreply@github.com>
56 author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
57 title: Update gradle-wrapper to latest version
58 body: ${{ steps.gwu.outputs.version-information }}
66 branch: update-gradle-wrapper
68 - name: Enable Pull Request Automerge
69 if: steps.cpr.outputs.pull-request-operation == 'created'
70 uses: peter-evans/enable-pull-request-automerge@v2
72 token: ${{ secrets.PAT }}
73 pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}