From 78baa384d5389d7b611fd308f4be8d6c4c6557f1 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Fri, 2 Feb 2024 23:55:08 +0100 Subject: [PATCH] ci: push fix commits to pr --- .github/workflows/format.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 10e85e0d..4f05634b 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -14,10 +14,13 @@ jobs: run: | find LEGO1 ISLE -iname '*.h' -o -iname '*.cpp' | xargs \ pipx run "clang-format>=17,<18" \ - --Werror \ - --dry-run \ + ${{ github.event_name == 'push' && '--Werror --dry-run' }} \ --style=file \ -i + - uses: stefanzweifel/git-auto-commit-action@latest + if: ${{ github.event_name == 'pull_request' }} + with: + commit_message: clang-format fixes python-format: name: 'Python'