diff --git a/index.js b/index.js index 79548a6..d5e5f94 100644 --- a/index.js +++ b/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]}`); } diff --git a/index.test.js b/index.test.js index 4bf95fb..74b72ff 100644 --- a/index.test.js +++ b/index.test.js @@ -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(); -}); \ No newline at end of file +});