Skip to content

Commit

Permalink
Fix recognition of changed files in pull request check
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuttari committed Jul 31, 2024
1 parent bdf4239 commit 6542f0b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/pr-clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,22 @@ jobs:
uses: tj-actions/changed-files@v39
with:
files: |
**.h **.c **.cpp
**.{h,c,cpp}
separator: ","
skip_initial_fetch: true

- name: List changed files
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
echo "Changed files:"
echo "$CHANGED_FILES"
- name: Install clang-format
uses: aminya/setup-cpp@v1
with:
clangformat: true

- name: Test
- name: Check format
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
Expand Down

0 comments on commit 6542f0b

Please sign in to comment.