From 6f6f30e55a5fe96aa0b94d8e251df6a02f89598f Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Mon, 26 Apr 2021 01:15:16 +0300 Subject: [PATCH] Meta: Lint commits for unix-style linebreaks This ensures serenity commits only contain unix-style LF linebreaks --- .github/workflows/cmake.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 2fb4dc5354..528a7ad256 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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: