From 21503858eb7dd1700f4572d28a80043a08359ede Mon Sep 17 00:00:00 2001 From: Scott Cranfill Date: Thu, 4 Feb 2021 13:00:46 -0500 Subject: [PATCH] Limit GitHub Actions docs and test workflows depending on changed paths (#6786) This should result in the docs workflow only running if files in the `docs/` folder have changed, and only run the test workflow if files NOT in the `docs/` folder have changed. This commit itself should therefore, I think, only trigger the test workflow. I will follow up with test commits for the other scenarios (docs-only and both). --- .github/workflows/docs.yml | 5 +++++ .github/workflows/test.yml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 607de98dbb..748ae9f5f1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,7 +2,12 @@ name: Wagtail Docs on: push: + paths: + - 'docs/**' pull_request: + paths: + - 'docs/**' + jobs: build-docs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9eac2ad69b..4418412b41 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,11 @@ name: Wagtail CI on: push: + paths-ignore: + - 'docs/**' pull_request: + paths-ignore: + - 'docs/**' # Our test suite should cover: