Added auth for private servers #7

Merged
Philipp merged 30 commits from added-local-auth into main 2023-11-26 22:24:20 +01:00
Showing only changes of commit c0e41f1845 - Show all commits

View File

@ -124,16 +124,14 @@ async function postCode() {
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); api.code.set(branch, files_to_push);
}) })
.then((result) => { .then(() => {
response = result;
console.log(`Code set successfully to ${branch}`); console.log(`Code set successfully to ${branch}`);
}) })
.catch((err) => { .catch((err) => {
console.error("Error:", err); console.error("Error:", err);
}); });
core.info(JSON.stringify(response));
} }
} }