From b25949348e98dab474ff4442bbec74d424d04144 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 4 Dec 2024 19:19:59 -0600 Subject: [PATCH] feat: Add setup-java as first step of composite action --- action.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/action.yml b/action.yml index 7ea5868..b551324 100644 --- a/action.yml +++ b/action.yml @@ -10,9 +10,21 @@ inputs: description: "Whether to install every Nextflow release via the '-all' distribution." required: false default: "false" + java-version: + description: "The Java version to install as the required dependency of Nextflow. Passed to the underlying setup-java action." + required: false + default: "17" + java-distribution: + description: "The Java distribution to install as the required dependency of Nextflow. Passed to the underlying setup-java action." + required: false + default: "zulu" runs: using: "composite" steps: + - uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b + with: + java-version: ${{ inputs.java-version }} + distribution: ${{ inputs.java-distribution }} - uses: ./subaction with: version: ${{ inputs.version }}