Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/update-gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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)"