From 4baa5929eac57bb12f3d1c4ef92c74694c3e5306 Mon Sep 17 00:00:00 2001 From: larzie Date: Wed, 25 Dec 2024 17:37:44 +0300 Subject: [PATCH] Update format action --- .github/workflows/format.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 74424665..cbbac4b6 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,6 +1,9 @@ name: Format -on: [push, pull_request] +on: + push: + pull_request: + workflow_dispatch: jobs: clang-format: @@ -8,12 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - - name: Run clang-format - run: | - find CONFIG LEGO1 ISLE -iname '*.h' -o -iname '*.cpp' | xargs \ - pipx run "clang-format>=17,<18" \ - --style=file \ - -i - git diff --exit-code + - name: Run clang-format + run: | + find CONFIG LEGO1 ISLE -iname '*.h' -o -iname '*.cpp' | xargs \ + pipx run "clang-format>=17,<18" \ + --style=file \ + -i + git diff --exit-code