mirror of
https://github.com/Snigdha-OS/snigdhaos-arctic.git
synced 2025-09-20 11:35:01 +02:00
🔧 fix(workflows): debug for continued issue
This commit is contained in:
6
.github/workflows/commit.yml
vendored
6
.github/workflows/commit.yml
vendored
@@ -24,7 +24,13 @@ jobs:
|
|||||||
conventional_types=("build" "chore" "ci" "docs" "feat" "fix" "perf" "refactor" "revert" "style" "test")
|
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"="🧪")
|
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
|
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" '
|
if echo "$LATEST_COMMIT_MESSAGE" | awk -v emoji="${commit_emojis[$type]}" -v type="$type" '
|
||||||
BEGIN { pattern = "^" emoji " " type "(:|:)" }
|
BEGIN { pattern = "^" emoji " " type "(:|:)" }
|
||||||
/pattern/ { print "Conventional commit message found: " $0; exit 0 }
|
/pattern/ { print "Conventional commit message found: " $0; exit 0 }
|
||||||
|
Reference in New Issue
Block a user