Skip to content

Commit 45b9599

Browse files
author
Steve Riesenberg
committed
Add optional arguments to replace task/args
1 parent 3b804f5 commit 45b9599

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

action.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ inputs:
1111
description: 'Distribution of the JDK to use to run the Gradle command. Used in the actions/setup-java step.'
1212
required: false
1313
default: 'temurin'
14-
task:
15-
description: 'One or more tasks of the Gradle command (e.g. clean build, :docs:asciidoctor, etc.)'
16-
required: true
17-
args:
18-
description: 'Optional arguments of the Gradle command (e.g. --scan, -PgitHubAccessToken=xyz, -Duser.name=spring-builds+github, etc.)'
14+
arguments:
15+
description: 'Gradle command line arguments.'
1916
required: false
20-
default: ''
2117

2218
runs:
2319
using: 'composite'
@@ -36,8 +32,7 @@ runs:
3632
uses: gradle/wrapper-validation-action@v1
3733
- name: Set up Gradle
3834
uses: gradle/gradle-build-action@v2
35+
with:
36+
arguments: ${{ inputs.arguments }}
3937
env:
4038
GRADLE_USER_HOME: ~/.gradle
41-
- name: Perform Gradle action
42-
shell: bash
43-
run: ./gradlew ${{ inputs.task }} ${{ inputs.args }}

0 commit comments

Comments
 (0)