Update the auth function
Lint / pre-commit Linting (push) Successful in 25s Details

This commit is contained in:
Philipp Horstenkamp 2023-11-26 21:48:39 +01:00
parent 2e271692b0
commit 7933a62f3a
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4
1 changed files with 3 additions and 1 deletions

View File

@ -119,10 +119,12 @@ async function postCode() {
core.info(JSON.stringify(response, null, 2));
} else {
core.info(`Logging into as user ${username}`);
// await api.auth(username, password, login_arguments));
// await api.auth(username, password, login_arguments));
const response = Promise.resolve()
.then(() => api.auth(username, password, login_arguments))
.then(() => {
return api.code.set(branch, code); // Set the code on the specified branch
return api.code.set(branch, files_to_push);
})
.then(() => {
console.log("Code set successfully");