From 9ed03028381049d27c519bbd4ed39117540538fa Mon Sep 17 00:00:00 2001 From: Davidson Bruno Date: Thu, 25 Apr 2024 18:44:53 -0300 Subject: [PATCH] fix: fixed regex variable --- actions/release-versioning/release-versioning.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/release-versioning/release-versioning.sh b/actions/release-versioning/release-versioning.sh index efb5d30..b4c0b87 100755 --- a/actions/release-versioning/release-versioning.sh +++ b/actions/release-versioning/release-versioning.sh @@ -41,7 +41,7 @@ if [ "$missing_parameter" == true ]; then # Check if the commit message is breaking change. breaking_change_regex="^BREAKING CHANGE:.*$|^[^\s]+!:.*$" - if [[ $COMMIT_MESSAGE =~ breaking_change_regex ]]; then + if [[ $COMMIT_MESSAGE =~ $breaking_change_regex ]]; then major_version=$((major_version + 1)) new_tag="${major_version}.0.0" echo "A breaking change was identified."