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:
parent
d0b49e1c14
commit
be682f6c2b
1 changed files with 3 additions and 3 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue