🔧 fix(workflows): debug for continued issue

This commit is contained in:
Eshan Roy (Eshanized)
2024-06-16 01:51:47 +05:30
parent 9a88e15fb9
commit 1cc1fa3bd6

View File

@@ -24,7 +24,13 @@ jobs:
conventional_types=("build" "chore" "ci" "docs" "feat" "fix" "perf" "refactor" "revert" "style" "test")
commit_emojis=("build"="🏗️" "chore"="🧹" "ci"="🤖" "docs"="📚" "feat"="🎉" "fix"="🔧" "perf"="⚡️" "refactor"="💡" "revert"="🚨" "style"="💄" "test"="🧪")
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" | awk -v emoji="${commit_emojis[$type]}" -v type="$type" '
BEGIN { pattern = "^" emoji " " type "(:|:)" }
/pattern/ { print "Conventional commit message found: " $0; exit 0 }