Skip to content

Commit

Permalink
ci: Limit when automatic docs building ci happens (#4496)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lgritz authored Oct 18, 2024
1 parent b93220e commit c3c6b1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ on:
# Skip jobs when only cpp files are changed. The materials for
# docs are all in md, rst, and .h files.
paths-ignore:
- '**/ci.yml'
- '**/analysis.yml'
- '**.properties'
- '**.cpp'
- 'src/**.cpp'
- '**.cmake'
- '**/run.py'
pull_request:
paths-ignore:
- '**/ci.yml'
- '**/analysis.yml'
- '**.properties'
- '**.cpp'
- 'src/**.cpp'
- '**.cmake'
- '**/run.py'
schedule:
# Full nightly build
- cron: "0 8 * * *"
Expand Down

0 comments on commit c3c6b1e

Please sign in to comment.