🔧 fix(workflows): idk

This commit is contained in:
Eshan Roy (Eshanized)
2024-06-16 02:11:26 +05:30
parent 9ce5eea496
commit 840c65792f

View File

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