add changes for check-latest

This commit is contained in:
Dmitry Shibanov 2021-03-18 12:18:52 +03:00
parent 804a60faf9
commit 8f3a7c87ff
9 changed files with 3363 additions and 9258 deletions

View file

@ -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);