Reworked the response parsing.
All checks were successful
Lint / pre-commit Linting (push) Successful in 47s
All checks were successful
Lint / pre-commit Linting (push) Successful in 47s
This commit is contained in:
parent
af0e213e80
commit
804a96901a
5
index.js
5
index.js
@ -119,10 +119,10 @@ async function postCode() {
|
|||||||
core.info(JSON.stringify(response, null, 2));
|
core.info(JSON.stringify(response, null, 2));
|
||||||
} else {
|
} else {
|
||||||
core.info(`Logging into as user ${username}`);
|
core.info(`Logging into as user ${username}`);
|
||||||
const response = await Promise.resolve()
|
response = await Promise.resolve()
|
||||||
.then(() => api.auth(username, password, login_arguments))
|
.then(() => api.auth(username, password, login_arguments))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return api.code.set(branch, files_to_push);
|
core.info(JSON.stringify(api.code.set(branch, files_to_push), null, 2));
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log(`Code set successfully to ${branch}`);
|
console.log(`Code set successfully to ${branch}`);
|
||||||
@ -130,7 +130,6 @@ async function postCode() {
|
|||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error("Error:", err);
|
console.error("Error:", err);
|
||||||
});
|
});
|
||||||
core.info(JSON.stringify(response, null, 2));
|
|
||||||
core.info("Authorized!");
|
core.info("Authorized!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user