Skip to content

Commit 852a832

Browse files
authored
Deduplicate path triggers in workflows (#9590)
2 parents fba1791 + 755b73b commit 852a832

9 files changed

Lines changed: 19 additions & 59 deletions

File tree

.github/workflows/cifuzz.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@ on:
44
push:
55
branches:
66
- "**"
7-
paths:
7+
paths: &paths
88
- ".github/dependencies.json"
99
- ".github/workflows/cifuzz.yml"
1010
- ".github/workflows/wheels-dependencies.sh"
1111
- "**.c"
1212
- "**.h"
1313
pull_request:
14-
paths:
15-
- ".github/dependencies.json"
16-
- ".github/workflows/cifuzz.yml"
17-
- ".github/workflows/wheels-dependencies.sh"
18-
- "**.c"
19-
- "**.h"
14+
paths: *paths
2015
workflow_dispatch:
2116

2217
permissions:

.github/workflows/docs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@ on:
44
push:
55
branches:
66
- "**"
7-
paths:
7+
paths: &paths
88
- ".github/workflows/docs.yml"
99
- "docs/**"
1010
- "src/PIL/**"
1111
pull_request:
12-
paths:
13-
- ".github/workflows/docs.yml"
14-
- "docs/**"
15-
- "src/PIL/**"
12+
paths: *paths
1613
workflow_dispatch:
1714

1815
permissions:

.github/workflows/test-docker.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@ on:
44
push:
55
branches:
66
- "**"
7-
paths-ignore:
7+
paths-ignore: &paths-ignore
88
- ".github/workflows/docs.yml"
99
- ".github/workflows/wheels*"
1010
- ".gitmodules"
1111
- "docs/**"
1212
- "wheels/**"
1313
pull_request:
14-
paths-ignore:
15-
- ".github/workflows/docs.yml"
16-
- ".github/workflows/wheels*"
17-
- ".gitmodules"
18-
- "docs/**"
19-
- "wheels/**"
14+
paths-ignore: *paths-ignore
2015
workflow_dispatch:
2116

2217
permissions:

.github/workflows/test-mingw.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@ on:
44
push:
55
branches:
66
- "**"
7-
paths-ignore:
7+
paths-ignore: &paths-ignore
88
- ".github/workflows/docs.yml"
99
- ".github/workflows/wheels*"
1010
- ".gitmodules"
1111
- "docs/**"
1212
- "wheels/**"
1313
pull_request:
14-
paths-ignore:
15-
- ".github/workflows/docs.yml"
16-
- ".github/workflows/wheels*"
17-
- ".gitmodules"
18-
- "docs/**"
19-
- "wheels/**"
14+
paths-ignore: *paths-ignore
2015
workflow_dispatch:
2116

2217
permissions:

.github/workflows/test-valgrind-memory.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88
# branches:
99
# - "**"
1010
# paths:
11-
# - ".github/workflows/test-valgrind.yml"
11+
# - ".github/workflows/test-valgrind-memory.yml"
1212
# - "**.c"
1313
# - "**.h"
14+
# - "depends/docker-test-valgrind-memory.sh"
1415
pull_request:
1516
paths:
16-
- ".github/workflows/test-valgrind.yml"
17+
- ".github/workflows/test-valgrind-memory.yml"
1718
- "**.c"
1819
- "**.h"
1920
- "depends/docker-test-valgrind-memory.sh"

.github/workflows/test-valgrind.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ on:
66
push:
77
branches:
88
- "**"
9-
paths:
9+
paths: &paths
1010
- ".github/workflows/test-valgrind.yml"
1111
- "**.c"
1212
- "**.h"
1313
pull_request:
14-
paths:
15-
- ".github/workflows/test-valgrind.yml"
16-
- "**.c"
17-
- "**.h"
14+
paths: *paths
1815
workflow_dispatch:
1916

2017
permissions:

.github/workflows/test-windows.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@ on:
44
push:
55
branches:
66
- "**"
7-
paths-ignore:
7+
paths-ignore: &paths-ignore
88
- ".github/workflows/docs.yml"
99
- ".github/workflows/wheels*"
1010
- ".gitmodules"
1111
- "docs/**"
1212
- "wheels/**"
1313
pull_request:
14-
paths-ignore:
15-
- ".github/workflows/docs.yml"
16-
- ".github/workflows/wheels*"
17-
- ".gitmodules"
18-
- "docs/**"
19-
- "wheels/**"
14+
paths-ignore: *paths-ignore
2015
workflow_dispatch:
2116

2217
permissions:

.github/workflows/test.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@ on:
44
push:
55
branches:
66
- "**"
7-
paths-ignore:
7+
paths-ignore: &paths-ignore
88
- ".github/workflows/docs.yml"
99
- ".github/workflows/wheels*"
1010
- ".gitmodules"
1111
- "docs/**"
1212
- "wheels/**"
1313
pull_request:
14-
paths-ignore:
15-
- ".github/workflows/docs.yml"
16-
- ".github/workflows/wheels*"
17-
- ".gitmodules"
18-
- "docs/**"
19-
- "wheels/**"
14+
paths-ignore: *paths-ignore
2015
workflow_dispatch:
2116

2217
permissions:

.github/workflows/wheels.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
# │ │ │ │ │
1111
- cron: "42 1 * * 0,3"
1212
push:
13-
paths:
13+
paths: &paths
1414
- ".ci/requirements-cibw.txt"
1515
- ".ci/requirements-sbom.txt"
1616
- ".github/dependencies.json"
@@ -24,17 +24,7 @@ on:
2424
tags:
2525
- "*"
2626
pull_request:
27-
paths:
28-
- ".ci/requirements-cibw.txt"
29-
- ".ci/requirements-sbom.txt"
30-
- ".github/dependencies.json"
31-
- ".github/generate-sbom.py"
32-
- ".github/workflows/wheels*"
33-
- "pyproject.toml"
34-
- "setup.py"
35-
- "wheels/*"
36-
- "winbuild/build_prepare.py"
37-
- "winbuild/fribidi.cmake"
27+
paths: *paths
3828
workflow_dispatch:
3929

4030
permissions:

0 commit comments

Comments
 (0)