Skip to content

Gradle Wrapper Update #113

Gradle Wrapper Update

Gradle Wrapper Update #113

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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up JDK 17
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.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@305cc571d6352f439bd0f88ca32d681c0c62324c # v1.3.0
- name: create pull request
uses: peter-evans/create-pull-request@d121e62763d8cc35b5fb1710e887d6e69a52d3a4 # v7.0.2
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"