Skip to content

Commit

Permalink
Create wrapper-upgrade-execution.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
platan authored Mar 10, 2024
1 parent f37bdce commit 5303f0e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/wrapper-upgrade-execution.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 5303f0e

Please sign in to comment.