You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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_URIrequired: true
Supported values of install-as-version:
PARSE_URIparses the computed or given URI for a valid Java version string
HASH_URI returns the hashCode() of the computed or given URI as a string
Add an input named
install-as-version
to this action enabling an override of the Java version passed to the underlyingactions/setup-java
action.Motivation
The underlying
actions/setup-java
action does NOT allow arbitrary values for itsjava-version
input. It uses it to determine the target directory of to where ajdkFile
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 (including19.99.99+99-jextract
) are treated as19
was given.This prevents installations of multiple releases of JDK N.
Proposal:
Supported values of
install-as-version
:PARSE_URI
parses the computed or given URI for a valid Java version stringHASH_URI
returns thehashCode()
of the computed or given URI as a stringactions/setup-java
as described here: https://github.com/actions/setup-java#supported-version-syntaxThis will control/change the output named
version
of this action.The text was updated successfully, but these errors were encountered: