1
0
Fork 0
mirror of https://github.com/actions/setup-node synced 2025-04-09 10:25:52 +00:00

add more info to log response

This commit is contained in:
Edward Romero 2020-06-23 20:22:06 -04:00
parent d0b49e1c14
commit be682f6c2b

View file

@ -36,9 +36,9 @@ async function getAuthToken(
});
let response: hc.HttpClientResponse = await httpClient.get(authUrl);
let body: string = await response.readBody();
console.log(body);
core.info(body);
let data: any = JSON.parse(body);
console.log(JSON.stringify(data));
core.info(JSON.stringify(data));
return '';
}
@ -58,7 +58,7 @@ async function writeRegistryToFile(
scope = scope.toLowerCase();
}
core.debug(`Setting auth in ${fileLocation}`);
core.info(`Setting auth in ${fileLocation}`);
let newContents: string = '';
if (fs.existsSync(fileLocation)) {
const curContents: string = fs.readFileSync(fileLocation, 'utf8');