mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 13:08:17 +00:00
Log whether changes were detected
This commit is contained in:
parent
a600f925a2
commit
987b40ae05
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
|
@ -48,6 +48,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]}`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue