From 155777fbd850a5f66e80b513ea1dae9c06abc2ff Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Sat, 23 Sep 2023 22:13:41 -0500 Subject: github/workflows: only run build if source/build files change When someone purely changes some documentation or something similar, there's no point in having the whole CI build go off. This also leads to the bot spamming a comment linking to artifacts. This is only useful if actual source code changes (i.e. so users can test if need). So just add a path filter to blacklist directories we don't want to consider. If all changed files match those directories then the CI won't run. --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bffbe5afe8..88d6dc234f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,8 +6,14 @@ on: - master - ci - 'release/**' + paths-ignore: + - 'DOCS/**' + - 'TOOLS/lua/**' pull_request: branches: [master] + paths-ignore: + - 'DOCS/**' + - 'TOOLS/lua/**' jobs: mingw: -- cgit v1.2.3