From 32c720fc4d5aa6d0030af014f05b7efce06563ed Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Sat, 29 Apr 2023 11:42:38 +0800 Subject: [PATCH] Prevent README.md and CODE-OF-CONDUCT.md to trigger CI Maybe the better option is: ``` paths: # trigger if the workflow changed - ".github/workflows/**" # trigger if the flake changed - "flake.*" # trigger if nix, scripts, or _sources changed - "nix/**" - "scripts/**" - "_sources/**" ``` --- .github/workflows/CI.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 431bc7049..5710632c9 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,6 +7,10 @@ on: push: branches: - main + # do not run the workflow if only markdown files + # in the root folder were changed. + paths: + - "!*.md" pull_request: workflow_dispatch: