Skip to content

Commit

Permalink
Merge pull request #39 from teofilomonteiro/patch-1
Browse files Browse the repository at this point in the history
Log the version with user format and namespace
  • Loading branch information
PaulHatch authored Oct 29, 2021
2 parents 00b872d + dc8f0c5 commit 3d2ea28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]}`);
}
Expand Down
4 changes: 2 additions & 2 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down Expand Up @@ -577,4 +577,4 @@ test('Tag prefix can include forward slash', () => {
expect(result).toMatch('Version is 1.2.3+0');

repo.clean();
});
});

0 comments on commit 3d2ea28

Please sign in to comment.