Skip to content

Commit

Permalink
feat: add a gradle wrapper validation step
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Dec 3, 2021
1 parent 3fb49f9 commit f7e2542
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion action.yml
Expand Up @@ -41,6 +41,10 @@ inputs:
description: 'True if the deploy operation should be executed'
default: false
required: false
should-validate-wrapper:
description: 'True if the wrapper should get validated before proceeding'
default: true
required: false
maven-central-username:
description: 'Username for Maven Central that will be exposed in the deployment step as the environment variable MAVEN_CENTRAL_PASSWORD'
default: 'danysk'
Expand Down Expand Up @@ -91,7 +95,11 @@ inputs:
runs:
using: composite
steps:
- uses: actions/setup-java@v2.3.1
- name: Validate the Gradle Wraper
if: inputs.should-validate-wrapper == 'true'
uses: gradle/wrapper-validation-action@v1.0.4
- name: Setup JAva
uses: actions/setup-java@v2.3.1
with:
distribution: ${{ inputs.java-distribution }}
java-version: ${{ inputs.java-version }}
Expand Down

0 comments on commit f7e2542

Please sign in to comment.