CI: another attempt to fix line-length check.
This commit is contained in:
parent
fdf34816a5
commit
fe000134a8
1 changed files with 1 additions and 2 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue