From aaf36f82858ac92c451840a3fadf8ef03238a6f9 Mon Sep 17 00:00:00 2001 From: xiaoyifang <105986+xiaoyifang@users.noreply.github.com> Date: Fri, 11 Feb 2022 22:09:44 +0800 Subject: [PATCH] Update clang-format.yml --- .github/workflows/clang-format.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 7f0dfe92..dc902b0f 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -1,14 +1,7 @@ name: Clang Format Checker on: workflow_dispatch: - push: - branches: - - dev - - staged - paths-ignore: - - 'docs/**' - - ".github/**" - - "howto/**" + pull_request: branches: - dev @@ -24,14 +17,14 @@ jobs: strategy: matrix: path: - - exclude: 'winlibs|maclibs' # Exclude file paths containing "hello" or "world" + - exclude: "(winlibs|maclibs)" # Exclude file paths containing "hello" or "world" steps: - uses: actions/checkout@v2 - name: Run clang-format style check for C/C++/Protobuf programs. uses: jidicula/clang-format-action@v4.5.0 with: clang-format-version: '13' - check-path: ${{ matrix.path['check'] }} + # check-path: ${{ matrix.path['check'] }} exclude-regex: ${{ matrix.path['exclude'] }} fallback-style: 'llvm' # optional