mirror of
https://github.com/Snigdha-OS/snigdhaos-arctic.git
synced 2025-09-21 12:05:01 +02:00
🔧 fix(workflows): LATEST_COMMIT_MESSAGE
This commit is contained in:
15
.github/workflows/commit.yml
vendored
15
.github/workflows/commit.yml
vendored
@@ -28,17 +28,14 @@ jobs:
|
|||||||
|
|
||||||
for type in "${conventional_types[@]}"; do
|
for type in "${conventional_types[@]}"; do
|
||||||
echo "Searching for pattern: ${commit_emojis[$type]} ${type}(:|:)"
|
echo "Searching for pattern: ${commit_emojis[$type]} ${type}(:|:)"
|
||||||
if echo "$LATEST_COMMIT_MESSAGE" | awk -v emoji="${commit_emojis[$type]}" -v type="$type" '
|
if echo "$LATEST_COMMIT_MESSAGE" | grep -qE "^${commit_emojis[$type]} ${type}(:|:)" ; then
|
||||||
$0 ~ "^" emoji " " type "(:|:)" { print "Conventional commit message found: " $0; exit 0 }
|
echo "Conventional commit message found: $LATEST_COMMIT_MESSAGE"
|
||||||
'; then
|
exit 0
|
||||||
:
|
|
||||||
else
|
|
||||||
:
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Error: Commit message is not conventional"
|
echo "Error: Commit message is not conventional"
|
||||||
exit 1
|
exit 1
|
||||||
# shell: /usr/bin/bash -e
|
shell: /usr/bin/bash -e
|
||||||
# env:
|
env:
|
||||||
# LATEST_COMMIT_MESSAGE: 🔧 fix(workflows): debug for continued issue
|
LATEST_COMMIT_MESSAGE: 🔧 fix(workflows): debug for continued issue
|
Reference in New Issue
Block a user