Meta: Lint commits for unix-style linebreaks

This ensures serenity commits only contain unix-style LF linebreaks
This commit is contained in:
Idan Horowitz 2021-04-26 01:15:16 +03:00 committed by Linus Groh
parent 8b06d6d9e8
commit 6f6f30e55a

View file

@ -242,6 +242,14 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check linebreaks
if: ${{ success() || failure() }}
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
pattern: '^[^\r]*$'
error: 'Commit message contains CRLF line breaks (only unix-style LF linebreaks are allowed)'
- name: Check Line Length
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
with: