git.iko.soy/typeable/pandoc
on master help sign in
CI: another attempt to fix line-length check.
fe00013John MacFarlane
.github/workflows/ci.yml+1−2
@@ -61,8 +61,7 @@ jobs:
61 - name: Check commit message
61 - name: Check commit message
62 run: |
62 run: |
63 # Get last commit message
63 # Get last commit message
64− git log -1 --pretty=format:"%s" --no-merges | grep -c "^[^#].{78}"
64+ if git log -1 --pretty=format:"%s" --no-merges | grep -E -c "^[^#].{78}"; then
65− if [ $? -eq 0 ]; then
66 echo "Last commit log contains a line with more than 78 characters."
65 echo "Last commit log contains a line with more than 78 characters."
67 exit 1
66 exit 1
68 else
67 else