diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index c7eac98..f50c486 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -133,7 +133,7 @@ jobs: uses: actions/checkout@v4 - name: Get list of changed Files - id: changes + id: changed uses: tj-actions/changed-files@v42 with: files: | @@ -142,7 +142,6 @@ jobs: **.cc - name: Check for formatting errors + if: steps.changed.outputs.any_changed == 'true' run: | - for file in ${{ steps.changes.outputs.all_changed_files }}; do - clang-format --dry-run -Werror $file - done + clang-format -n -Werror ${{ steps.changed.outputs.all_changed_files }}