From 5303f0eeb28ae60f15d132408556aee5f173ce24 Mon Sep 17 00:00:00 2001 From: Marcin Mielnicki <1526000+platan@users.noreply.github.com> Date: Sun, 10 Mar 2024 14:03:19 +0100 Subject: [PATCH] Create wrapper-upgrade-execution.yml --- .../workflows/wrapper-upgrade-execution.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/wrapper-upgrade-execution.yml diff --git a/.github/workflows/wrapper-upgrade-execution.yml b/.github/workflows/wrapper-upgrade-execution.yml new file mode 100644 index 0000000..c7d7e5d --- /dev/null +++ b/.github/workflows/wrapper-upgrade-execution.yml @@ -0,0 +1,29 @@ +name: Execute Wrapper Upgrade + +on: + schedule: + - cron: '0 2 * * *' + workflow_dispatch: + +jobs: + upgrade_wrapper: + name: Execution + runs-on: ubuntu-latest + steps: + - name: Set up Git configuration + env: + TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: git config --global url."https://unused-username:${TOKEN}@github.com/".insteadOf "https://github.com/" + - name: Checkout + uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v3 + - name: Upgrade Wrappers + run: ./gradlew clean upgradeGradleWrapperAll --continue -Porg.gradle.java.installations.auto-download=false + env: + WRAPPER_UPGRADE_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}