Skip to content

Gradle Wrapper Update #158

Gradle Wrapper Update

Gradle Wrapper Update #158

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@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@305cc571d6352f439bd0f88ca32d681c0c62324c # v1.3.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"