From 1dc984eaabca97fa59c64e5c4588e98301da6cd6 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Sun, 14 Aug 2022 13:49:10 +0100 Subject: ci(lint): generate PR suggestions from uncrustify --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74940c762f..c87b36e7e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,6 +119,18 @@ jobs: name: uncrustify run: | ${{ env.CACHE_UNCRUSTIFY }} -c ./src/uncrustify.cfg -q --replace --no-backup $(find ./src/nvim -name "*.[ch]") + + - if: "!cancelled()" + name: suggester / uncrustify + uses: reviewdog/action-suggester@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + tool_name: uncrustify + cleanup: false + + - if: "!cancelled()" + name: check uncrustify + run: | git diff --color --exit-code - if: "!cancelled()" -- cgit