Skip to content

Commit b5c189a

Browse files
authored
[CI] Introduce path limits for workflow runs (#528)
1 parent 2f87c86 commit b5c189a

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
on:
22
workflow_call:
3+
push:
4+
paths:
5+
- '**/*.cpp'
6+
- '**/*.hpp'
7+
- '**/*.c'
8+
- '**/*.h'
9+
- '**/*.py'
10+
- '**/*.sh'
11+
- '.clang-format'
12+
- 'setup.cfg'
13+
- '.github/workflows/lint.yml'
14+
pull_request:
15+
paths:
16+
- '**/*.cpp'
17+
- '**/*.hpp'
18+
- '**/*.c'
19+
- '**/*.h'
20+
- '**/*.py'
21+
- '**/*.sh'
22+
- '.clang-format'
23+
- 'setup.cfg'
24+
- '.github/workflows/lint.yml'
325

426
jobs:
527
clang-format:

.github/workflows/pre-commit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Pre-commit checks
22

33
on:
44
pull_request:
5+
paths-ignore:
6+
- 'docs/**'
7+
- '*.md'
8+
- '*.rst'
9+
- '*.txt'
10+
- 'LICENSE'
511

612
jobs:
713
pre-commit:

.github/workflows/static-analysis-pr.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: Static analysis
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
paths:
6+
- '**/*.cpp'
7+
- '**/*.hpp'
8+
- '**/*.c'
9+
- '**/*.h'
10+
- '**/CMakeLists.txt'
11+
- '**/*.cmake'
12+
- '.github/workflows/static-analysis-pr.yml'
413

514
concurrency:
615
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}

0 commit comments

Comments
 (0)