From 9d00b8a3e38acac18558faf7152ca24368ed0d9f Mon Sep 17 00:00:00 2001 From: Andres Almiray Date: Tue, 21 Jun 2022 17:32:17 +0200 Subject: [PATCH] Add java-opts argument. Fixes #8 --- README.adoc | 1 + action.yml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index a87cf02..6f31e34 100644 --- a/README.adoc +++ b/README.adoc @@ -104,6 +104,7 @@ You may use `latest` to pull the latest stable release or + Defaults to the directory the calling workflow runs in. | setup-java | boolean | true | Automatically setup a Java runtime. + Java runtime defaults to Zulu 17. +| java-opts | boolean | | Additional JVM parameters for running JReleaser |=== == Environment Variables diff --git a/action.yml b/action.yml index 692c4f3..9eb9636 100644 --- a/action.yml +++ b/action.yml @@ -27,6 +27,11 @@ inputs: description: 'Setup internal Java runtime.' required: false + java-opts: + default: '' + description: 'Additional JVM parameters' + required: false + runs: using: 'composite' steps: @@ -51,4 +56,4 @@ runs: working-directory: ${{ inputs.working-directory }} run: | echo "☕ java -jar jreleaser-cli.jar ${{ inputs.arguments }}" - java -jar jreleaser-cli.jar ${{ inputs.arguments }} + java ${{ inputs.java-opts }} -jar jreleaser-cli.jar ${{ inputs.arguments }}