aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d935ce079..0eeb2f086 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -61,8 +61,7 @@ jobs:
- name: Check commit message
run: |
# Get last commit message
- git log -1 --pretty=format:"%s" --no-merges | grep -c "^[^#].{78}"
- if [ $? -eq 0 ]; then
+ if git log -1 --pretty=format:"%s" --no-merges | grep -E -c "^[^#].{78}"; then
echo "Last commit log contains a line with more than 78 characters."
exit 1
else