Add java-opts argument. Fixes #8

This commit is contained in:
Andres Almiray 2022-06-21 17:32:17 +02:00
parent 77fb95c777
commit 9d00b8a3e3
No known key found for this signature in database
GPG key ID: CCC55C5167419ADB
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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 }}