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;