Skip to content

Commit

Permalink
Create update-gradle-wrapper.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Henry <henry.git@outlook.com>
  • Loading branch information
henry-hub authored Jun 1, 2024
1 parent c5dfbaa commit 46c6adf
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/update-gradle-wrapper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Gradle Wrapper Update

on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: Chmod
run: chmod +x ./gradlew

- name: update gradle
id: gradleUpdate
uses: EdwarDDay/upgrade-gradle-action@v1

- name: create pull request
uses: peter-evans/create-pull-request@v3
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"

0 comments on commit 46c6adf

Please sign in to comment.