This commit is contained in:
parent
5fc053cd76
commit
d241d51744
7
index.js
7
index.js
@ -124,15 +124,16 @@ 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(() => {
|
||||||
response = api.code.set(branch, files_to_push);
|
api.code.set(branch, files_to_push);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then((result) => {
|
||||||
|
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(await response));
|
core.info(JSON.stringify(response));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user