From e7dede1b52bc33793a0608a67a4e050c022ee52b Mon Sep 17 00:00:00 2001 From: Paul Hatcherian <1835615+PaulHatch@users.noreply.github.com> Date: Sat, 5 Sep 2020 05:57:03 -0400 Subject: [PATCH] Log exec fails as info as they aren't necessarily error --- dist/index.js | 8 ++++++-- index.js | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index a0e59e5..f5e8f04 100644 --- a/dist/index.js +++ b/dist/index.js @@ -961,10 +961,10 @@ const cmd = async (command, ...args) => { }; await exec.exec(command, args, options) - .catch(err => { core.warning(`${command} ${args.join(' ')} failed: ${err}`); }); + .catch(err => { core.info(`The command '${command} ${args.join(' ')}' failed: ${err}`); }); if (errors !== '') { - core.warning(errors); + core.info(`stderr: ${errors}`); } return output; @@ -994,6 +994,10 @@ const setOutput = (major, minor, patch, increment, changed, branch, namespace) = const repository = process.env.GITHUB_REPOSITORY; + if (!changed) { + core.info('No changes detected for this commit'); + } + core.info(`Version is ${major}.${minor}.${patch}+${increment}`); if (repository !== undefined && !namespace) { core.info(`To create a release for this version, go to https://github.com/${repository}/releases/new?tag=${tag}&target=${branch.split('/').reverse()[0]}`); diff --git a/index.js b/index.js index 6204b6a..202db2f 100644 --- a/index.js +++ b/index.js @@ -15,10 +15,10 @@ const cmd = async (command, ...args) => { }; await exec.exec(command, args, options) - .catch(err => { core.warning(`${command} ${args.join(' ')} failed: ${err}`); }); + .catch(err => { core.info(`The command '${command} ${args.join(' ')}' failed: ${err}`); }); if (errors !== '') { - core.warning(errors); + core.info(`stderr: ${errors}`); } return output;