Skip to content

Commit

Permalink
Bumped version to 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza committed Feb 12, 2021
1 parent cd76390 commit 5612b13
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
8 changes: 5 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,15 @@ class Git {
}
// In case there are multiple tags get the first valid version tag
if (this.settings.tagRegex) {
let foundTag = '';
res.stdout.forEach(tag => {
if (this.settings.tagRegex.test(tag)) {
return tag;
foundTag = tag;
return;
}
});
// No tag matched
return '';
// Return either matched tag or none
return foundTag;
}
// Get the first tag we found if there's no tag regex
return res.stdout[0];
Expand Down
16 changes: 12 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-changelog",
"version": "1.2.0",
"version": "1.2.1",
"private": true,
"description": "Action to generate a changelog from a Git repository commit history.",
"main": "lib/main.js",
Expand Down

0 comments on commit 5612b13

Please sign in to comment.