diff --git a/dist/setup/index.js b/dist/setup/index.js index 96d71a1d..0c22427f 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -102435,7 +102435,7 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { if (!availableVersionsRaw) { throw new Error('Could not load manifest for Microsoft Build of OpenJDK'); } - const foundRelease = yield tc.findFromManifest(range, true, availableVersionsRaw, this.architecture); + const foundRelease = yield tc.findFromManifest(range, true, availableVersionsRaw.map(item => Object.assign(item, { release_url: '' })), this.architecture); // const opts = this.getPlatformOption(); // const availableVersions = availableVersionsRaw.map(item => ({ // url: `https://aka.ms/download-jdk/microsoft-jdk-${item.version.join('.')}-${opts.os}-${ @@ -102469,6 +102469,7 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { // We will need Microsoft to add an endpoint where we can query for versions. const token = core.getInput('token'); const manifest = (yield this.http.getJson('https://github.com/dmitry-shibanov/setup-java/blob/add-json-for-microsoft-versions/microsoft-build-of-openjdk-versions.json', { authorization: token })).result; + core.info(manifest); return manifest; }); } diff --git a/src/distributions/microsoft/installer.ts b/src/distributions/microsoft/installer.ts index 5a2ded49..806b5f06 100644 --- a/src/distributions/microsoft/installer.ts +++ b/src/distributions/microsoft/installer.ts @@ -105,12 +105,14 @@ export class MicrosoftDistributions extends JavaBase { // We will need Microsoft to add an endpoint where we can query for versions. const token = core.getInput('token'); const manifest = ( - await this.http.getJson( + await this.http.getJson( 'https://github.com/dmitry-shibanov/setup-java/blob/add-json-for-microsoft-versions/microsoft-build-of-openjdk-versions.json', { authorization: token } ) ).result; + core.info(manifest); + return manifest; }