Gradle Wrapper Update #209
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: Gradle Wrapper Update | |
on: | |
schedule: | |
- cron: '0 6 * * *' | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Chmod | |
run: chmod +x ./gradlew | |
- name: update gradle | |
id: gradleUpdate | |
uses: EdwarDDay/upgrade-gradle-action@3b3788a65fe8c6d24ee63acbf09a3d59e39b4f0b # v1.5.0 | |
- name: create pull request | |
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 | |
with: | |
commit-message: "build(deps): Update gradle to ${{ steps.gradleUpdate.outputs.gradle-version }}" | |
branch: "gradle_update/version_${{ steps.gradleUpdate.outputs.gradle-version }}" | |
delete-branch: true | |
title: "build(deps): Update gradle to ${{ steps.gradleUpdate.outputs.gradle-version }}" | |
body: | | |
${{ steps.gradleUpdate.outputs.version-information }} | |
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action | |
labels: "dependencies,gradle" |