1 name: Update Gradle Wrapper
11 update-gradle-wrapper:
12 runs-on: ubuntu-latest
15 name: Clone Git Repository
16 uses: actions/checkout@v4
19 uses: actions/setup-java@v4
21 java-version: ${{ env.JAVA_VERSION }}
22 java-package: ${{ env.JAVA_PACKAGE }}
23 architecture: ${{ env.JAVA_ARCH }}
24 distribution: ${{ env.JAVA_DISTRO }}
28 run: mvn --batch-mode install --define skipTests
30 name: yosql-tooling-gradle
31 uses: EdwarDDay/upgrade-gradle-action@v1
33 working-directory: yosql-tooling/yosql-tooling-gradle
34 distribution-type: all
35 - name: yosql-examples-gradle
36 uses: EdwarDDay/upgrade-gradle-action@v1
38 working-directory: yosql-examples/yosql-examples-gradle
39 distribution-type: all
40 - name: Validate Gradle Wrapper
41 uses: gradle/wrapper-validation-action@v3
43 name: Create Pull Request
44 uses: peter-evans/create-pull-request@v7
46 token: ${{ secrets.PAT }}
47 commit-message: Update gradle-wrapper to latest version
48 committer: GitHub <noreply@github.com>
49 author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
50 title: Update gradle-wrapper to latest version
51 body: ${{ steps.gwu.outputs.version-information }}
59 branch: update-gradle-wrapper
61 - name: Enable Pull Request Automerge
62 if: steps.cpr.outputs.pull-request-operation == 'created'
63 run: gh pr merge --rebase --auto "${{ steps.cpr.outputs.pull-request-number }}"
65 token: ${{ secrets.PAT }}