mirror of
https://github.com/diligencia/semantic-branch-version.git
synced 2024-11-23 09:43:50 +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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user