other logging

This commit is contained in:
koeneijkemans 2020-07-05 08:49:01 +02:00
parent ac9e9d46b0
commit abd075dce5

View File

@ -3,7 +3,10 @@ const execlib = require('@actions/exec');
try {
getBranchName()
.then(name => core.setOutput("branchname", name));
.then(name => {
console.log(name);
core.setOutput("branchname", name)
});
} catch (error) {
core.setFailed(error.message);
}
@ -14,7 +17,6 @@ async function getBranchName() {
listeners: {
stdout: (data) => {
output += data.toString();
console.log(data);
}
}
};