From fed4c0914c1cb84fb961808e3f10eb922b76b8a4 Mon Sep 17 00:00:00 2001 From: Cristian Greco Date: Thu, 1 Oct 2020 16:09:39 +0100 Subject: [PATCH 1/2] Add workflow for Update Gradle Wrapper Action. This action keeps Gradle Wrapper up-to-date to the latest release. It will run every day at midnight (UTC) and create a pull request if a new Gradle version is available. The updated Wrapper script is validated (with checksum verification) during the update process, and the Wrapper is setup so that it will validate the Gradle binary itself on first run of the new version. Here we stick to action version v1.0.9 (74a035c). --- .github/workflows/update-gradle-wrapper.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/update-gradle-wrapper.yml diff --git a/.github/workflows/update-gradle-wrapper.yml b/.github/workflows/update-gradle-wrapper.yml new file mode 100644 index 00000000000..fd32bfd5ae1 --- /dev/null +++ b/.github/workflows/update-gradle-wrapper.yml @@ -0,0 +1,20 @@ +name: Update Gradle Wrapper + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + update-gradle-wrapper: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Update Gradle Wrapper + uses: gradle-update/update-gradle-wrapper-action@74a035c + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + labels: dependencies + + - uses: gradle/wrapper-validation-action@v1 From f71cf12f2247815b073f4066a71c40ed7c13920b Mon Sep 17 00:00:00 2001 From: Cristian Greco Date: Sun, 11 Oct 2020 15:47:49 +0100 Subject: [PATCH 2/2] Pin wrapper-validation-action to e2c57ac. Co-authored-by: Richard North --- .github/workflows/update-gradle-wrapper.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-gradle-wrapper.yml b/.github/workflows/update-gradle-wrapper.yml index fd32bfd5ae1..f3a01949324 100644 --- a/.github/workflows/update-gradle-wrapper.yml +++ b/.github/workflows/update-gradle-wrapper.yml @@ -17,4 +17,4 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} labels: dependencies - - uses: gradle/wrapper-validation-action@v1 + - uses: gradle/wrapper-validation-action@e2c57ac