From 9ce5eea49611357f3c7b4de74939595112b85f41 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" <148610067+eshanized@users.noreply.github.com> Date: Sun, 16 Jun 2024 02:09:57 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(workflows):=20shell=20option?= =?UTF-8?q?=20to=20bash=20and=20removed=20the=20-e=20flag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/commit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml index 4e71206..e1a4433 100644 --- a/.github/workflows/commit.yml +++ b/.github/workflows/commit.yml @@ -28,8 +28,8 @@ jobs: 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 + 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