mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 13:08:17 +00:00
Merge pull request #39 from teofilomonteiro/patch-1
Log the version with user format and namespace
This commit is contained in:
commit
3d2ea28b25
2 changed files with 3 additions and 3 deletions
2
index.js
2
index.js
|
|
@ -61,7 +61,7 @@ const setOutput = (major, minor, patch, increment, changed, branch, namespace) =
|
||||||
core.info('No changes detected for this commit');
|
core.info('No changes detected for this commit');
|
||||||
}
|
}
|
||||||
|
|
||||||
core.info(`Version is ${major}.${minor}.${patch}+${increment}`);
|
core.info(`Version is ${version}`);
|
||||||
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]}`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ const defaultInputs = {
|
||||||
tag_prefix: "v",
|
tag_prefix: "v",
|
||||||
major_pattern: "(MAJOR)",
|
major_pattern: "(MAJOR)",
|
||||||
minor_pattern: "(MINOR)",
|
minor_pattern: "(MINOR)",
|
||||||
format: "${major}.${minor}.${patch}",
|
format: "${major}.${minor}.${patch}+${increment}",
|
||||||
short_tags: true,
|
short_tags: true,
|
||||||
bump_each_commit: false
|
bump_each_commit: false
|
||||||
};
|
};
|
||||||
|
|
@ -577,4 +577,4 @@ test('Tag prefix can include forward slash', () => {
|
||||||
expect(result).toMatch('Version is 1.2.3+0');
|
expect(result).toMatch('Version is 1.2.3+0');
|
||||||
|
|
||||||
repo.clean();
|
repo.clean();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue