diff --git a/dist/setup/index.js b/dist/setup/index.js index 0c22427f..586b87d1 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -102468,9 +102468,10 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { // TODO get these dynamically! // 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; + const { result, statusCode } = (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 })); + core.info(result); + core.info(statusCode.toString()); + return result; }); } getPlatformOption(platform = process.platform /* for testing */) { diff --git a/src/distributions/microsoft/installer.ts b/src/distributions/microsoft/installer.ts index 806b5f06..92544b73 100644 --- a/src/distributions/microsoft/installer.ts +++ b/src/distributions/microsoft/installer.ts @@ -104,16 +104,17 @@ export class MicrosoftDistributions extends JavaBase { // TODO get these dynamically! // We will need Microsoft to add an endpoint where we can query for versions. const token = core.getInput('token'); - const manifest = ( + const {result, statusCode} = ( 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); + core.info(result); + core.info(statusCode.toString()); - return manifest; + return result; } private getPlatformOption(