2020-01-10 16:00:21 +00:00
name : 'Gradle Wrapper Validation'
description : 'Validates Gradle Wrapper JAR Files'
2020-01-05 11:55:59 +00:00
author : 'Gradle'
2020-01-10 17:04:36 +00:00
2020-01-05 11:04:24 +00:00
inputs :
2020-01-10 16:54:22 +00:00
min-wrapper-count :
2022-11-04 14:10:04 +00:00
description : 'Minimum number expected gradle-wrapper.jar files found in the repository. Non-negative number. Higher number is useful in monorepos where each project might have their own wrapper.'
2020-01-10 16:54:22 +00:00
required : false
default : '1'
2020-01-05 11:55:59 +00:00
allow-snapshots :
2022-11-04 14:10:04 +00:00
description : 'Allow Gradle snapshot versions during checksum verification. Boolean, true or false.'
2020-01-05 11:55:59 +00:00
required : false
default : 'false'
2020-01-06 12:36:28 +00:00
allow-checksums :
2022-11-04 14:10:04 +00:00
description : 'Accept arbitrary user-defined checksums as valid. Comma separated list of SHA256 checksums (lowercase hex).'
2020-01-06 12:36:28 +00:00
required : false
default : ''
2020-01-10 17:04:36 +00:00
2023-07-18 12:41:49 +00:00
outputs :
failed-wrapper :
2024-02-07 03:56:02 +00:00
description : 'The path of the Gradle Wrapper(s) JAR that failed validation. Path is a platform-dependent relative path to git repository root. Multiple paths are separated by a | character.'
2024-04-12 21:03:36 +00:00
value : ${{ steps.wrapper-validation.outputs.failed-wrapper }}
2023-07-18 12:41:49 +00:00
2020-01-05 11:04:24 +00:00
runs :
2024-04-12 21:03:36 +00:00
using : "composite"
steps :
- name : Wrapper Validation
id : wrapper-validation
2024-04-18 19:54:36 +00:00
uses : gradle/actions/wrapper-validation@v3.3.1
2024-04-12 21:03:36 +00:00
with :
min-wrapper-count : ${{ inputs.min-wrapper-count }}
allow-snapshots : ${{ inputs.allow-snapshots }}
allow-checksums : ${{ inputs.allow-checksums }}
env :
GRADLE_ACTION_ID : gradle/wrapper-validation-action
2020-01-10 17:04:36 +00:00
branding :
icon : 'shield'
color : gray-dark