This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch v4
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git
The following commit(s) were added to refs/heads/v4 by this push:
new fe08362 Allow to disable installing multiple JDKs for toolchains
fe08362 is described below
commit fe08362cb9737081f2b39e62ac585c34e1cdda19
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Fri Mar 20 00:27:45 2026 +0100
Allow to disable installing multiple JDKs for toolchains
---
.github/workflows/maven-verify-test.yml | 2 ++
.github/workflows/maven-verify.yml | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/maven-verify-test.yml
b/.github/workflows/maven-verify-test.yml
index a810fbe..6f6e02b 100644
--- a/.github/workflows/maven-verify-test.yml
+++ b/.github/workflows/maven-verify-test.yml
@@ -40,6 +40,8 @@ jobs:
verify-goal: clean install
verify-fail-fast: false
maven-matrix: '[ "3.9.14" ]'
+ ff-jdk-toolchain: ''
+ jdk-toolchain: ''
# test with Maven 4
verify-3:
diff --git a/.github/workflows/maven-verify.yml
b/.github/workflows/maven-verify.yml
index 15a16f2..011fb2a 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -298,6 +298,7 @@ jobs:
- name: Set up JDKs for Toolchain
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 #
v5.2.0
+ if: inputs.ff-jdk-toolchain != ''
with:
java-version: ${{ inputs.ff-jdk-toolchain }}
distribution: ${{ inputs.ff-jdk-distribution }}
@@ -421,7 +422,7 @@ jobs:
persist-credentials: false
- name: Set up JDKs for Toolchain
- if: steps.should-run.conclusion == 'success'
+ if: steps.should-run.conclusion == 'success' && inputs.jdk-toolchain
!= ''
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 #
v5.2.0
with:
java-version: ${{ inputs.jdk-toolchain }}