diff --git a/dist/setup/index.js b/dist/setup/index.js index c5d3a4ce..597f03c6 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -102460,7 +102460,7 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { .map(item => item.version) .join(', ')}`); } - return { url: foundRelease.release_url, version: foundRelease.version }; + return { url: foundRelease.files[0].download_url, version: foundRelease.version }; }); } getAvailableVersions() { diff --git a/src/distributions/microsoft/installer.ts b/src/distributions/microsoft/installer.ts index 489a3d39..d3aa569d 100644 --- a/src/distributions/microsoft/installer.ts +++ b/src/distributions/microsoft/installer.ts @@ -97,7 +97,7 @@ export class MicrosoftDistributions extends JavaBase { ); } - return { url: foundRelease.release_url, version: foundRelease.version }; + return { url: foundRelease.files[0].download_url, version: foundRelease.version }; } private async getAvailableVersions(): Promise {