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."