Skip to content

Commit e190d37

Browse files
committed
ci: Limit when automatic docs building ci happens (#4496)
Times we DON'T need to test rebuilding the docs: * When just the ci.yml workflow changes (like when we bump what versions of dependencies ci tests use). * When tests changes only by altering their run.py. But DO try rebuilding docs: * When cpp files change that are outside of src/, such as the cpp files in the testsuite that are used to supply code snippets that appear in the docs. Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent d530816 commit e190d37

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,20 @@ on:
99
# Skip jobs when only cpp files are changed. The materials for
1010
# docs are all in md, rst, and .h files.
1111
paths-ignore:
12+
- '**/ci.yml'
1213
- '**/analysis.yml'
1314
- '**.properties'
14-
- '**.cpp'
15+
- 'src/**.cpp'
1516
- '**.cmake'
17+
- '**/run.py'
1618
pull_request:
1719
paths-ignore:
20+
- '**/ci.yml'
1821
- '**/analysis.yml'
1922
- '**.properties'
20-
- '**.cpp'
23+
- 'src/**.cpp'
2124
- '**.cmake'
25+
- '**/run.py'
2226
schedule:
2327
# Full nightly build
2428
- cron: "0 8 * * *"

0 commit comments

Comments
 (0)