diff options
| -rw-r--r-- | .github/actions/change-analysis/action.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/actions/change-analysis/action.yml b/.github/actions/change-analysis/action.yml index 84494fa821..eb1d7c3b75 100644 --- a/.github/actions/change-analysis/action.yml +++ b/.github/actions/change-analysis/action.yml @@ -217,7 +217,8 @@ runs: # Parse Conventional Commits: type(scope): subject # Also handles: type: subject, type!: subject, type(scope)!: subject - if [[ "$FULL_MSG" =~ ^([a-zA-Z]+)(\(([^)]*)\))?(!)?\:\ (.+)$ ]]; then + COMMIT_RE='^([a-zA-Z]+)(\(([^)]*)\))?(!)?\:\ (.+)$' + if [[ "$FULL_MSG" =~ $COMMIT_RE ]]; then TYPE="${BASH_REMATCH[1]}" SCOPE="${BASH_REMATCH[3]:-}" BREAKING="${BASH_REMATCH[4]:-}" |
