From 840c65792f6e168f24ff0e5a70a0925f3020535f Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" <148610067+eshanized@users.noreply.github.com> Date: Sun, 16 Jun 2024 02:11:26 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(workflows):=20idk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/commit.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index e1a4433..1689765 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -27,9 +27,9 @@ jobs: echo "LATEST_COMMIT_MESSAGE: $LATEST_COMMIT_MESSAGE" for type in "${conventional_types[@]}"; do - pattern="${commit_emojis[$type]} ${type}" - echo "Searching for pattern: $pattern(:|)?" - if echo "$LATEST_COMMIT_MESSAGE" | grep -qE "^$pattern(:|)?"; then + pattern="${commit_emojis[$type]} ${type}(:|)?" + echo "Searching for pattern: $pattern" + if echo "$LATEST_COMMIT_MESSAGE" | grep -qE "^$pattern"; then echo "Conventional commit message found: $LATEST_COMMIT_MESSAGE" exit 0 fi