mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 09:56:46 +00:00
add changes for check-latest
This commit is contained in:
parent
804a60faf9
commit
8f3a7c87ff
9 changed files with 3363 additions and 9258 deletions
|
@ -13,11 +13,13 @@ async function run() {
|
|||
const architecture = core.getInput(constants.INPUT_ARCHITECTURE);
|
||||
const packageType = core.getInput(constants.INPUT_JAVA_PACKAGE);
|
||||
const jdkFile = core.getInput(constants.INPUT_JDK_FILE);
|
||||
const checkLatest = core.getInput(constants.INPUT_CHECK_LATEST);
|
||||
|
||||
const installerOptions: JavaInstallerOptions = {
|
||||
architecture,
|
||||
packageType,
|
||||
version
|
||||
version,
|
||||
checkLatest: checkLatest ? false : checkLatest.toLowerCase() === 'true'
|
||||
};
|
||||
|
||||
const distribution = getJavaDistribution(distributionName, installerOptions, jdkFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue