Reworked a message.
This commit is contained in:
parent
7933a62f3a
commit
7c75b9d000
5
index.js
5
index.js
@ -119,16 +119,13 @@ 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, files_to_push);
|
||||
})
|
||||
.then(() => {
|
||||
console.log("Code set successfully");
|
||||
// Additional actions after setting the code, if necessary
|
||||
console.log(`Code set successfully to ${branch}`);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error("Error:", err);
|
||||
|
Loading…
x
Reference in New Issue
Block a user