mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 04:58:17 +00:00
Log exec fails as info as they aren't necessarily error
This commit is contained in:
parent
987b40ae05
commit
e7dede1b52
2 changed files with 8 additions and 4 deletions
8
dist/index.js
vendored
8
dist/index.js
vendored
|
|
@ -961,10 +961,10 @@ const cmd = async (command, ...args) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
await exec.exec(command, args, options)
|
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 !== '') {
|
if (errors !== '') {
|
||||||
core.warning(errors);
|
core.info(`stderr: ${errors}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
|
@ -994,6 +994,10 @@ const setOutput = (major, minor, patch, increment, changed, branch, namespace) =
|
||||||
|
|
||||||
const repository = process.env.GITHUB_REPOSITORY;
|
const repository = process.env.GITHUB_REPOSITORY;
|
||||||
|
|
||||||
|
if (!changed) {
|
||||||
|
core.info('No changes detected for this commit');
|
||||||
|
}
|
||||||
|
|
||||||
core.info(`Version is ${major}.${minor}.${patch}+${increment}`);
|
core.info(`Version is ${major}.${minor}.${patch}+${increment}`);
|
||||||
if (repository !== undefined && !namespace) {
|
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]}`);
|
core.info(`To create a release for this version, go to https://github.com/${repository}/releases/new?tag=${tag}&target=${branch.split('/').reverse()[0]}`);
|
||||||
|
|
|
||||||
4
index.js
4
index.js
|
|
@ -15,10 +15,10 @@ const cmd = async (command, ...args) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
await exec.exec(command, args, options)
|
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 !== '') {
|
if (errors !== '') {
|
||||||
core.warning(errors);
|
core.info(`stderr: ${errors}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue