Skip to content

Commit 5612b13

Browse files
committed
Bumped version to 1.2.1
1 parent cd76390 commit 5612b13

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

dist/index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,15 @@ class Git {
9999
}
100100
// In case there are multiple tags get the first valid version tag
101101
if (this.settings.tagRegex) {
102+
let foundTag = '';
102103
res.stdout.forEach(tag => {
103104
if (this.settings.tagRegex.test(tag)) {
104-
return tag;
105+
foundTag = tag;
106+
return;
105107
}
106108
});
107-
// No tag matched
108-
return '';
109+
// Return either matched tag or none
110+
return foundTag;
109111
}
110112
// Get the first tag we found if there's no tag regex
111113
return res.stdout[0];

package-lock.json

+12-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-changelog",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"private": true,
55
"description": "Action to generate a changelog from a Git repository commit history.",
66
"main": "lib/main.js",

0 commit comments

Comments
 (0)