From 80f87f89a190ced56e4b8b3de96dee25f7cad889 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 12 Mar 2021 19:59:32 -0800 Subject: [PATCH] Exclude our build and test action from doc-only changes. (#390) No since spending the GitHub action minutes (or waiting to merge) on Bazel when only changing markdown or other files that aren't part of the build and test. --- .github/workflows/tests.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ff32f134bfa4..d22d1efd9c4b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -7,7 +7,23 @@ name: test on: push: branches: [trunk] + paths: + # Conservatively run the tests. However, skip them if the only paths in + # the pull request match files that we know don't impact the build. + - '**' + - '!**/*.md' + - '!LICENSE' + - '!CODEOWNERS' + - '!.git*' pull_request: + paths: + # Conservatively run the tests. However, skip them if the only paths in + # the pull request match files that we know don't impact the build. + - '**' + - '!**/*.md' + - '!LICENSE' + - '!CODEOWNERS' + - '!.git*' jobs: test: