minor changes

This commit is contained in:
Dmitry Shibanov 2022-09-05 15:07:57 +02:00
parent e2b8e57140
commit 7b84a4c0bd
2 changed files with 9 additions and 7 deletions

View file

@ -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<any>(
'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(