Add path filters to CI and build workflows

Prevents workflows from running on changes to docs, README, infra,
summary.md, or other non-code files. Build workflow also skips on
test-only changes since tests don't affect the Docker image.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 20:39:12 -04:00
parent feac66dcd0
commit ef3a4fafd4
2 changed files with 20 additions and 0 deletions
+8
View File
@@ -14,6 +14,14 @@ name: Build & push image
on:
push:
branches: [main]
paths:
- "src/**"
- "frontend/**"
- "Dockerfile"
- "pyproject.toml"
- "alembic/**"
- "alembic.ini"
- ".forgejo/workflows/build.yml"
env:
REGISTRY: git.fabledsword.com
+12
View File
@@ -4,7 +4,19 @@ name: CI
on:
push:
paths:
- "src/**"
- "frontend/**"
- "tests/**"
- "pyproject.toml"
- ".forgejo/workflows/ci.yml"
pull_request:
paths:
- "src/**"
- "frontend/**"
- "tests/**"
- "pyproject.toml"
- ".forgejo/workflows/ci.yml"
jobs:
typecheck: