Skip to content

Add workflow to automate Gradle wrapper updates in shared#545

Draft
Copilot wants to merge 6 commits intomasterfrom
copilot/create-ci-workflow-gradle-wrapper
Draft

Add workflow to automate Gradle wrapper updates in shared#545
Copilot wants to merge 6 commits intomasterfrom
copilot/create-ci-workflow-gradle-wrapper

Conversation

Copy link
Contributor

Copilot AI commented Feb 4, 2026

The Gradle wrapper in shared/ requires frequent manual updates. This adds automation via workflow_dispatch.

Changes

  • New workflow .github/workflows/gradle-wrapper-update.yml

    • Manual trigger with inputs: gradle-version and gradle-distribution-sha256-sum
    • Checkouts mtransit-for-android main repo, runs .github/actions/setup composite action
    • Updates wrapper at repo root: ./gradlew wrapper --gradle-version <version> --gradle-distribution-sha256-sum=<checksum>
    • Copies gradle/, gradlew, gradlew.bat to commons/shared/
    • Commits to commons submodule and creates PR
    • Explicit permissions: contents: write, pull-requests: write
  • Updated .gitignore to exclude .gradle/ build artifacts

Usage

gh workflow run gradle-wrapper-update.yml --ref <branch> \
  -f gradle-version=8.13 \
  -f gradle-distribution-sha256-sum=<sha256>

SHA256 checksums available at: https://gradle.org/release-checksums/

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • docs.gradle.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Create CI workflow to update gradle wrapper</issue_title>
<issue_description>Gradle wrapper in shared needs to be updated often.

Please not that in regular gradle project, the gradl* files and directory are expected to be at the root of the project.
Probably need to checkout main repo https://github.com/mtransitapps/mtransit-for-android and then run ./.github/actions/setup composite action before updating gradle wrapper.
Then will need to copy gradle* files and directory to commons/shared/ (with cp -R ./gradle* commons/shared/) before creating the PR in commons submodule

Create CI workflow with inputs for gradle-version and gradle-distribution-sha256-sum

The Gradle command to update is:
./gradlew wrapper --gradle-version <gradle-version> --gradle-distribution-sha256-sum=<gradle-distribution-sha256-sum>

The sha can be found here: https://gradle.org/release-checksums/ (link should be in CI input description)

Can use this Github action

Similar to: .github/workflows/gradle-wrapper-validation.yml

</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 5 commits February 4, 2026 15:11
Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
…ignore

Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com>
Copilot AI changed the title [WIP] Create CI workflow to update Gradle wrapper Add workflow to automate Gradle wrapper updates in shared Feb 4, 2026
Copilot AI requested a review from mmathieum February 4, 2026 15:18
@mmathieum mmathieum added the paused ⏸️ paused work label Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

paused ⏸️ paused work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create CI workflow to update gradle wrapper

2 participants