mirror of
https://github.com/Snigdha-OS/snigdhaos-arctic.git
synced 2025-09-20 19:45:01 +02:00
🔧 fix(workflows): Error: Commit message is not conventional
This commit is contained in:
11
.github/workflows/commit.yml
vendored
11
.github/workflows/commit.yml
vendored
@@ -27,13 +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"
|
||||
|
||||
echo "Searching for pattern: ${commit_emojis[$type]} ${type}(:|:)"
|
||||
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 }
|
||||
$0 ~ "^" emoji " " type "(:|:)" { print "Conventional commit message found: " $0; exit 0 }
|
||||
'; then
|
||||
:
|
||||
else
|
||||
@@ -43,3 +39,6 @@ jobs:
|
||||
|
||||
echo "Error: Commit message is not conventional"
|
||||
exit 1
|
||||
shell: /usr/bin/bash -e
|
||||
env:
|
||||
LATEST_COMMIT_MESSAGE: 🔧 fix(workflows): debug for continued issue
|
Reference in New Issue
Block a user