diff --git a/dist/setup/index.js b/dist/setup/index.js index ff891d8c..46a4e141 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -33725,7 +33725,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') { url += '&architecture=' + architecture; url += '&operating_system=' + operatingSystem; url += '&archive_type=' + archiveType; - if (version.includes('x') || version.includes('ea')) { + if (version.includes('x') || version.includes('ea') || version.startsWith('1.')) { url += '&latest=overall'; } const http = new httpm.HttpClient('bundles', undefined, { diff --git a/src/installer.ts b/src/installer.ts index 91366b84..2d158e34 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -254,7 +254,11 @@ async function getDownloadInfo( url += '&architecture=' + architecture; url += '&operating_system=' + operatingSystem; url += '&archive_type=' + archiveType; - if (version.includes('x') || version.includes('ea')) { + if ( + version.includes('x') || + version.includes('ea') || + version.startsWith('1.') + ) { url += '&latest=overall'; }