File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 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)"
You can’t perform that action at this time.
0 commit comments