Update the auth function
All checks were successful
Lint / pre-commit Linting (push) Successful in 25s
All checks were successful
Lint / pre-commit Linting (push) Successful in 25s
This commit is contained in:
parent
2e271692b0
commit
7933a62f3a
4
index.js
4
index.js
@ -119,10 +119,12 @@ 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}`);
|
||||||
|
// await api.auth(username, password, login_arguments));
|
||||||
|
// await api.auth(username, password, login_arguments));
|
||||||
const response = Promise.resolve()
|
const response = Promise.resolve()
|
||||||
.then(() => api.auth(username, password, login_arguments))
|
.then(() => api.auth(username, password, login_arguments))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return api.code.set(branch, code); // Set the code on the specified branch
|
return api.code.set(branch, files_to_push);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log("Code set successfully");
|
console.log("Code set successfully");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user