-
Notifications
You must be signed in to change notification settings - Fork 15
33 lines (31 loc) · 970 Bytes
/
update-gradle.yml
File metadata and controls
33 lines (31 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Update gradle version
on:
workflow_dispatch:
inputs:
gradle-version:
description: Gradle version
default: latest
type: string
required: false
jobs:
update:
env:
GH_TOKEN: ${{ github.token }}
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Update gradlew
run: |
./gradlew wrapper --gradle-version ${{ inputs.gradle-version }}
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b gradle-update
git add .
git commit --allow-empty -m "Update gradle via qupath/actions/.github/workflows/update-gradle.yml"
git push -u origin gradle-update
gh pr create --title "Update gradle via actions" --body "$(./gradlew --version)"