Compare commits
3 Commits
7933a62f3a
...
2b9a04a136
Author | SHA1 | Date |
---|---|---|
Philipp Horstenkamp | 2b9a04a136 | |
Philipp Horstenkamp | 3eeeb73e0e | |
Philipp Horstenkamp | 7c75b9d000 |
9
index.js
9
index.js
|
@ -97,12 +97,12 @@ async function postCode() {
|
|||
|
||||
const login_arguments = {
|
||||
token: token,
|
||||
username: username,
|
||||
password: password,
|
||||
protocol: protocol,
|
||||
hostname: hostname,
|
||||
port: port,
|
||||
path: path,
|
||||
username: "NameVergessen",
|
||||
password: password,
|
||||
};
|
||||
|
||||
core.info("login_arguments:");
|
||||
|
@ -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…
Reference in New Issue