Skip to content

Commit b12bfe2

Browse files
Add gradle update action (#9)
1 parent 942d745 commit b12bfe2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update gradle version
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
gradle-version:
7+
description: Gradle version
8+
default: latest
9+
type: string
10+
required: false
11+
12+
jobs:
13+
update:
14+
env:
15+
GH_TOKEN: ${{ github.token }}
16+
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
shell: bash
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Update gradlew
23+
run: |
24+
./gradlew wrapper --gradle-version ${{ inputs.gradle-version }}
25+
- name: Commit and push
26+
run: |
27+
git config user.name "github-actions[bot]"
28+
git config user.email "github-actions[bot]@users.noreply.github.com"
29+
git checkout -b gradle-update
30+
git add .
31+
git commit --allow-empty -m "Update gradle via qupath/actions/.github/workflows/update-gradle.yml"
32+
git push -u origin gradle-update
33+
gh pr create --title "Update gradle via actions" --body "$(./gradlew --version)"

0 commit comments

Comments
 (0)