Run commands sliently

This commit is contained in:
Paul Hatcherian 2020-10-07 08:38:48 -04:00
parent 866aab0885
commit 4160681a29

View file

@ -12,7 +12,8 @@ const cmd = async (command, ...args) => {
options.listeners = {
stdout: (data) => { output += data.toString(); },
stderr: (data) => { errors += data.toString(); },
ignoreReturnCode: true
ignoreReturnCode: true,
silent: true
};
await exec.exec(command, args, options)
@ -104,6 +105,17 @@ async function run() {
`--match=${releasePattern}`,
`${branch}~1`
)).trim();
if (tag === '') {
tag = (await cmd(
'git',
`tag`,
`--list ${releasePattern}`,
`--points-at ${branch}`
)).trim();
}
}
catch (err) {
tag = '';