From fe000134a86d6ee287e6c01f8ab70d9f99a7c9ed Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 25 May 2020 09:50:17 -0700 Subject: [PATCH] CI: another attempt to fix line-length check. --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 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