From 4160681a29f437220d973fb33eb9cf5115287f97 Mon Sep 17 00:00:00 2001 From: Paul Hatcherian <1835615+PaulHatch@users.noreply.github.com> Date: Wed, 7 Oct 2020 08:38:48 -0400 Subject: [PATCH] Run commands sliently --- index.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 26b9f5a..1f3d36c 100644 --- a/index.js +++ b/index.js @@ -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 = '';