From f6cbbe79487412bbf805d708dbc2620e67d5fc54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Fri, 12 Jul 2024 16:04:35 +0200 Subject: [PATCH] Add missing input for java distribution See gh-41463 --- .github/actions/prepare-gradle-build/action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/prepare-gradle-build/action.yml b/.github/actions/prepare-gradle-build/action.yml index e07cef704045..bd14ef554b10 100644 --- a/.github/actions/prepare-gradle-build/action.yml +++ b/.github/actions/prepare-gradle-build/action.yml @@ -5,9 +5,13 @@ inputs: required: false default: '17' description: 'The Java version to use for the build' + java-distribution: + required: false + default: 'liberica' + description: 'The Java distribution to use for the build' java-toolchain: required: false - default: false + default: 'false' description: 'Whether a Java toolchain should be used' develocity-access-key: required: false @@ -23,7 +27,7 @@ runs: - name: Set Up Java uses: actions/setup-java@v4 with: - distribution: 'liberica' + distribution: ${{ inputs.java-distribution }} java-version: | ${{ inputs.java-version }} ${{ inputs.java-toolchain == 'true' && '17' || '' }}