mirror of
https://github.com/diligencia/semantic-branch-version.git
synced 2024-11-23 13:33:51 +08:00
other logging
This commit is contained in:
parent
ac9e9d46b0
commit
abd075dce5
6
index.js
6
index.js
@ -3,7 +3,10 @@ const execlib = require('@actions/exec');
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
getBranchName()
|
getBranchName()
|
||||||
.then(name => core.setOutput("branchname", name));
|
.then(name => {
|
||||||
|
console.log(name);
|
||||||
|
core.setOutput("branchname", name)
|
||||||
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
@ -14,7 +17,6 @@ async function getBranchName() {
|
|||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data) => {
|
stdout: (data) => {
|
||||||
output += data.toString();
|
output += data.toString();
|
||||||
console.log(data);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user