diff --git a/dist/setup/index.js b/dist/setup/index.js index 04386175..edac7083 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.endsWith('x') || version.includes('ea')) { + if (version.includes('x') || version.includes('ea')) { url += '&latest=overall'; } const http = new httpm.HttpClient('bundles', undefined, { diff --git a/src/installer.ts b/src/installer.ts index 7a50ab73..91366b84 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -254,7 +254,7 @@ async function getDownloadInfo( url += '&architecture=' + architecture; url += '&operating_system=' + operatingSystem; url += '&archive_type=' + archiveType; - if (version.endsWith('x') || version.includes('ea')) { + if (version.includes('x') || version.includes('ea')) { url += '&latest=overall'; }