mirror of
https://hub.gitmirror.com/https://github.com/gradle/actions.git
synced 2025-10-27 16:09:59 +08:00
1.1 KiB
1.1 KiB
The wrapper-validation action
The wrapper-validation action validates the checksums of all Gradle Wrapper JAR files present in the repository and fails if any unknown Gradle Wrapper JAR files are found.
The action should be run in the root of the repository, as it will recursively search for any files named gradle-wrapper.jar.
Note
Starting with v4 the
setup-gradleaction will automatically perform wrapper validation on each execution.If you are using
setup-gradlein your workflows, it is unlikely that you will need to use thewrapper-validationaction.
Example workflow
name: "Validate Gradle Wrapper"
on:
push:
pull_request:
jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v5
See the full action documentation for more advanced usage scenarios.