From c3c6b1e01b12c9ebaef343e55c61500357920595 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Fri, 18 Oct 2024 10:06:30 -0700 Subject: [PATCH] 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 --- .github/workflows/docs.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e36f7667ca..a2639eaeec 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 * * *"