Log exec fails as info as they aren't necessarily error

This commit is contained in:
Paul Hatcherian 2020-09-05 05:57:03 -04:00
parent 987b40ae05
commit e7dede1b52
2 changed files with 8 additions and 4 deletions

8
dist/index.js vendored
View file

@ -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]}`);

View file

@ -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;