# dorny/paths-filter

Conditionally run actions based on files modified by PR, feature branch or pushed commits

Repository: https://github.com/dorny/paths-filter
Canonical: https://ross.abutalabs.com/products/paths-filter
Language: TypeScript
License: MIT
License Family: permissive
Topics: github-actions, change-detection, conditional-execution, ci-cd
Last push: 2026-08-05T12:20:34+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 96, longevity 100
- inputs: {"age_days": 2296, "days_push": 28, "days_rel": 28, "gap_med": 5, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3302, forks 386 (observed 2026-08-28T04:07:55.709640+00:00)

## What it is
A GitHub Action that conditionally runs workflow jobs and steps based on which files were modified in a pull request, feature branch, or pushed commits. It enables selective CI execution, saving time and resources especially in monorepo setups.

## Use cases
- run integration tests only when relevant files changed
- skip deployment jobs for unaffected components in a monorepo
- conditionally lint only changed code in a PR
- detect modified files between feature branch and base branch
- filter workflow steps by changed paths in GitHub Actions

## When to choose
- you need per-job or per-step path filtering beyond GitHub's built-in on.push.paths
- you maintain a monorepo and want to avoid running the full pipeline on every change
- you need change detection across pull_request, push, and merge_group events

## When to avoid
- you only need simple top-level trigger path filters, which GitHub Actions supports natively
- your CI runs outside GitHub Actions
- you need change detection for non-git version control systems

## Facets
- artifact type: plugin
- maturity: active
- function: ci-cd, workflow-automation, developer-tools
- domain: developer-tools
- platform: cloud, cli
- tags: github-actions, change-detection, monorepo, conditional-execution, path-filtering, devops, automation

## Member repositories
- dorny/paths-filter (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:55.709640+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:22:39.799329+00:00, confidence not recorded.
  - readme: https://github.com/dorny/paths-filter (fetched 2026-08-28T04:07:55.709640+00:00, sha 22f63e0ef1b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
