Update Gradle Wrapper #141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Gradle Wrapper | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
update-gradle-wrapper: | |
runs-on: ubuntu-latest | |
# Skip in forks | |
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'daedric7/element-x-daedricnet' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
name: Use JDK 21 | |
#if: (github.event_name == 'pull_request' && github.event.pull_request.fork == null) || github.event_name == 'workflow_dispatch' | |
with: | |
distribution: 'temurin' # See 'Supported distributions' for available options | |
java-version: '21' | |
- name: Update Gradle Wrapper | |
uses: gradle-update/update-gradle-wrapper-action@v2 | |
with: | |
repo-token: ${{ secrets.DANGER_GITHUB_API_TOKEN }} | |
target-branch: develop | |
labels: PR-Build |