Skip to content

Commit

Permalink
Include v in regex capture group
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudahtt committed Sep 11, 2019
1 parent c8b0c37 commit 8ecd7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/scripts/release-create-gh-release
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function install_github_cli ()

current_commit_msg=$(git show -s --format='%s' HEAD)

if [[ $current_commit_msg =~ Version[-[:space:]]v([[:digit:]]+.[[:digit:]]+.[[:digit:]]+) ]]
if [[ $current_commit_msg =~ Version[-[:space:]](v[[:digit:]]+.[[:digit:]]+.[[:digit:]]+) ]]
then
tag="${BASH_REMATCH[1]}"

Expand Down

0 comments on commit 8ecd7a8

Please sign in to comment.