🔧 fix(workflows): shell option to bash and removed the -e flag

This commit is contained in:
Eshan Roy (Eshanized)
2024-06-16 02:09:57 +05:30
parent 0e0812f734
commit 9ce5eea496

View File

@@ -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