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:
@@ -14,6 +14,14 @@ name: Build & push image
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- "src/**"
|
||||||
|
- "frontend/**"
|
||||||
|
- "Dockerfile"
|
||||||
|
- "pyproject.toml"
|
||||||
|
- "alembic/**"
|
||||||
|
- "alembic.ini"
|
||||||
|
- ".forgejo/workflows/build.yml"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: git.fabledsword.com
|
REGISTRY: git.fabledsword.com
|
||||||
|
|||||||
@@ -4,7 +4,19 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
paths:
|
||||||
|
- "src/**"
|
||||||
|
- "frontend/**"
|
||||||
|
- "tests/**"
|
||||||
|
- "pyproject.toml"
|
||||||
|
- ".forgejo/workflows/ci.yml"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "src/**"
|
||||||
|
- "frontend/**"
|
||||||
|
- "tests/**"
|
||||||
|
- "pyproject.toml"
|
||||||
|
- ".forgejo/workflows/ci.yml"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
typecheck:
|
typecheck:
|
||||||
|
|||||||
Reference in New Issue
Block a user