mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 04:58: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(`Version is ${major}.${minor}.${patch}+${increment}`);
|
||||
core.info(`Version is ${version}`);
|
||||
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]}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const defaultInputs = {
|
|||
tag_prefix: "v",
|
||||
major_pattern: "(MAJOR)",
|
||||
minor_pattern: "(MINOR)",
|
||||
format: "${major}.${minor}.${patch}",
|
||||
format: "${major}.${minor}.${patch}+${increment}",
|
||||
short_tags: true,
|
||||
bump_each_commit: false
|
||||
};
|
||||
|
|
@ -577,4 +577,4 @@ test('Tag prefix can include forward slash', () => {
|
|||
expect(result).toMatch('Version is 1.2.3+0');
|
||||
|
||||
repo.clean();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue