From c040c8abc085b23ac0a5e9af1c3306fdd7024d9e Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Sat, 9 May 2026 11:50:13 -0500 Subject: [PATCH] Skip CI on non-build changes via paths-ignore PR-only filter (push to main keeps building unconditionally). Skips the workflow when every changed file matches one of: - Documentation: **.md, LICENSE, CITATION.cff, llms.txt - Repo config: .gitignore, .gitattributes, .github/ISSUE_TEMPLATE/** - Non-CI artifacts: docs/, screenshots/, server/ - Projects intentionally excluded from PlanViewer.sln: src/PlanViewer.Ssms/** src/PlanViewer.Ssms.Installer/** If any changed file falls outside the ignore list, the workflow runs as before. Mirrors the path filter pattern already in deploy-web.yml. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f7b77c..a4c3a37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,19 @@ on: branches: [main] pull_request: branches: [main, dev] + paths-ignore: + - '**.md' + - 'LICENSE' + - '.gitattributes' + - '.gitignore' + - 'CITATION.cff' + - 'llms.txt' + - '.github/ISSUE_TEMPLATE/**' + - 'docs/**' + - 'screenshots/**' + - 'server/**' + - 'src/PlanViewer.Ssms/**' + - 'src/PlanViewer.Ssms.Installer/**' jobs: build-and-test: