Skip to content

Commit 8a00dc5

Browse files
Trotttargos
authored andcommitted
build: skip long-running Actions for README-only modifications
If the only file modified is README.md do not run test-linux or build-windows tasks. This will help streamline onboarding sessions but may help some other cases too. PR-URL: #40571 Reviewed-By: Voltrex <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 132f6cb commit 8a00dc5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build-windows.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: build-windows
22

33
on:
44
pull_request:
5+
paths-ignore:
6+
- "README.md"
57
types: [opened, synchronize, reopened, ready_for_review]
68
push:
79
branches:
@@ -10,6 +12,8 @@ on:
1012
- canary
1113
- v[0-9]+.x-staging
1214
- v[0-9]+.x
15+
paths-ignore:
16+
- "README.md"
1317

1418
env:
1519
PYTHON_VERSION: '3.10'

.github/workflows/test-linux.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: test-linux
22

33
on:
44
pull_request:
5+
paths-ignore:
6+
- "README.md"
57
types: [opened, synchronize, reopened, ready_for_review]
68
push:
79
branches:
@@ -10,6 +12,8 @@ on:
1012
- canary
1113
- v[0-9]+.x-staging
1214
- v[0-9]+.x
15+
paths-ignore:
16+
- "README.md"
1317

1418
env:
1519
PYTHON_VERSION: '3.10'

0 commit comments

Comments
 (0)