mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 01:11:00 +00:00
add some more l ogging
This commit is contained in:
parent
be682f6c2b
commit
f05d7045cd
1 changed files with 3 additions and 3 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
@ -4722,9 +4722,9 @@ function getAuthToken(authUrl, authUser, authPass) {
|
|||
});
|
||||
let response = yield httpClient.get(authUrl);
|
||||
let body = yield response.readBody();
|
||||
console.log(body);
|
||||
core.info(body);
|
||||
let data = JSON.parse(body);
|
||||
console.log(JSON.stringify(data));
|
||||
core.info(JSON.stringify(data));
|
||||
return '';
|
||||
});
|
||||
}
|
||||
|
@ -4740,7 +4740,7 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) {
|
|||
if (scope) {
|
||||
scope = scope.toLowerCase();
|
||||
}
|
||||
core.debug(`Setting auth in ${fileLocation}`);
|
||||
core.info(`Setting auth in ${fileLocation}`);
|
||||
let newContents = '';
|
||||
if (fs.existsSync(fileLocation)) {
|
||||
const curContents = fs.readFileSync(fileLocation, 'utf8');
|
||||
|
|
Loading…
Add table
Reference in a new issue