mirror of
https://github.com/Snigdha-OS/snigdhaos-arctic.git
synced 2025-09-20 11:35:01 +02:00
🔧 fix(workflows): Changed the pattern to pattern="${commit_emojis[$type]} ${type}" to correctly construct the pattern
This commit is contained in:
5
.github/workflows/commit.yml
vendored
5
.github/workflows/commit.yml
vendored
@@ -27,8 +27,9 @@ jobs:
|
||||
echo "LATEST_COMMIT_MESSAGE: $LATEST_COMMIT_MESSAGE"
|
||||
|
||||
for type in "${conventional_types[@]}"; do
|
||||
echo "Searching for pattern: ${commit_emojis[$type]} ${type}(:|:)"
|
||||
if echo "$LATEST_COMMIT_MESSAGE" | grep -qE "^${commit_emojis[$type]} ${type}(:|:)"; 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
|
||||
|
Reference in New Issue
Block a user