Reworked the response parsing.
Lint / pre-commit Linting (push) Successful in 47s Details

This commit is contained in:
Philipp Horstenkamp 2023-11-26 22:04:51 +01:00
parent af0e213e80
commit 804a96901a
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4
1 changed files with 2 additions and 3 deletions

View File

@ -119,10 +119,10 @@ async function postCode() {
core.info(JSON.stringify(response, null, 2));
} else {
core.info(`Logging into as user ${username}`);
const response = await Promise.resolve()
response = await Promise.resolve()
.then(() => api.auth(username, password, login_arguments))
.then(() => {
return api.code.set(branch, files_to_push);
core.info(JSON.stringify(api.code.set(branch, files_to_push), null, 2));
})
.then(() => {
console.log(`Code set successfully to ${branch}`);
@ -130,7 +130,6 @@ async function postCode() {
.catch((err) => {
console.error("Error:", err);
});
core.info(JSON.stringify(response, null, 2));
core.info("Authorized!");
}
}