From e4dfd2a4c10e322451f48f9f7a22e0cd0cb93657 Mon Sep 17 00:00:00 2001 From: Karl Rister Date: Wed, 18 Oct 2023 14:07:12 -0500 Subject: [PATCH] restrict github faux workflows to only running on files explicitly listed in their paths list by ignoring all other files - we only want the faux workflows to run when the explicitly listed files are modified AND only those files are modified - we don't want the faux workflows to execute in parallel to the non faux workflows because then the branch protection rules will always be meet --- .github/workflows/faux-crucible-ci.yaml | 1 + .github/workflows/faux-unittest.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/faux-crucible-ci.yaml b/.github/workflows/faux-crucible-ci.yaml index 201dc1ad..cf09a069 100644 --- a/.github/workflows/faux-crucible-ci.yaml +++ b/.github/workflows/faux-crucible-ci.yaml @@ -4,6 +4,7 @@ on: pull_request: branches: [ master ] paths: + - !** # ignore all files other than the ones listed below - LICENSE - '**.md' - .github/workflows/faux-unittest.yaml diff --git a/.github/workflows/faux-unittest.yaml b/.github/workflows/faux-unittest.yaml index 8d3f6265..b0a9773b 100644 --- a/.github/workflows/faux-unittest.yaml +++ b/.github/workflows/faux-unittest.yaml @@ -4,6 +4,7 @@ on: pull_request: branches: [ master ] paths: + - !** # ignore all files other than the ones listed below - LICENSE - '**.md' - .github/workflows/faux-unittest.yaml