Skip to content

Create CI workflow to update gradle wrapper #544

@mmathieum

Description

@mmathieum

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

Metadata

Metadata

Assignees

Labels

dependenciesPull requests that update a dependency fileenhancementgithub_actionsPull requests that update GitHub Actions code

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions