Merge pull request #39 from teofilomonteiro/patch-1

Log the version with user format and namespace
This commit is contained in:
Paul Hatcherian 2021-10-29 08:32:27 -04:00 committed by GitHub
commit 3d2ea28b25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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]}`);
}

View file

@ -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();
});
});