diff --git a/dist/setup/index.js b/dist/setup/index.js index f4495424..9c871146 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -33705,7 +33705,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') { archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz'; } } - let latest = 'explicit'; + let latest = ''; if (version.endsWith('x')) { if (version.endsWith('.x')) { version = version.slice(0, -2); @@ -33716,10 +33716,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') { latest = 'overall'; } } - if (version.endsWith('0') || - version.length === 1 || - version.length === 2 || - version.includes('ea')) { + if (version.includes('ea')) { latest = 'overall'; } let url = constants_1.DISCO_URL + constants_1.PACKAGES_PATH; diff --git a/src/installer.ts b/src/installer.ts index c70e196d..8fc2699c 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -236,7 +236,7 @@ async function getDownloadInfo( } } - let latest = 'explicit'; + let latest = ''; if (version.endsWith('x')) { if (version.endsWith('.x')) { version = version.slice(0, -2); @@ -246,12 +246,7 @@ async function getDownloadInfo( latest = 'overall'; } } - if ( - version.endsWith('0') || - version.length === 1 || - version.length === 2 || - version.includes('ea') - ) { + if (version.includes('ea')) { latest = 'overall'; }