-
Couldn't load subscription status.
- Fork 12
Description
Add an input named install-as-version to this action enabling an override of the Java version passed to the underlying actions/setup-java action.
Motivation
The underlying actions/setup-java action does NOT allow arbitrary values for its java-version input. It uses it to determine the target directory of to where a jdkFile is extracted to. It also seems to apply a merging logic when it comes to different releases of the same feature release version number: for example, 19, 19.0.0, 19.99.99 and others (including 19.99.99+99-jextract) are treated as 19 was given.
This prevents installations of multiple releases of JDK N.
Proposal:
install-as-version:
description: 'Controls which value is passed as `java-version` to `actions/setup-java`'
default: PARSE_URI
required: trueSupported values of install-as-version:
PARSE_URIparses the computed or given URI for a valid Java version stringHASH_URIreturns thehashCode()of the computed or given URI as a string- All strings supported by
actions/setup-javaas described here: https://github.com/actions/setup-java#supported-version-syntax
This will control/change the output named version of this action.