Skip to content

Commit 056b5a2

Browse files
committed
chore: make clang-tidy only run on files in PR
1 parent ab2b0fe commit 056b5a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/cpp-linter.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: lint
2+
concurrency:
3+
group: ${{ github.workflow }}-${{ github.ref }}
4+
cancel-in-progress: true
25

36
on:
47
push:
@@ -46,7 +49,7 @@ jobs:
4649
# Set this option to 'true' to only analyze changes in the event's diff. Defaults to 'false'.
4750
#lines-changed-only: # optional
4851
# Set this option to 'false' to analyze any source files in the repo. Defaults to 'true'.
49-
files-changed-only: false
52+
files-changed-only: true
5053
# Set this option with string of path(s) to ignore.
5154
ignore: '.github|.idea|.vscode|extern'
5255
# The directory containing compile_commands.json file.

0 commit comments

Comments
 (0)