Added an awit token
This commit is contained in:
parent
2b9a04a136
commit
8eebf7bb27
3
index.js
3
index.js
@ -119,7 +119,7 @@ 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 = Promise.resolve()
|
const 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);
|
return api.code.set(branch, files_to_push);
|
||||||
@ -131,7 +131,6 @@ async function postCode() {
|
|||||||
console.error("Error:", err);
|
console.error("Error:", err);
|
||||||
});
|
});
|
||||||
core.info("Authorized!");
|
core.info("Authorized!");
|
||||||
core.info(JSON.stringify(response, null, 2));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user