{"repo":"dorny/paths-filter","free":true,"listed":false,"github":"https://github.com/dorny/paths-filter","clone":"git clone https://github.com/dorny/paths-filter.git","description":"Conditionally run actions based on files modified by PR, feature branch or pushed commits","language":"TypeScript","stars":3293,"topics":["github-actions","change-detection","conditional-execution","ci-cd"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Paths Changes Filter GitHub Action that enables conditional execution of workflow steps and jobs, based on the files modified by pull request, on a feature branch, or by the recently pushed commits. Run slow tasks like integration tests or deployments only for changed components. It saves time and resources, especially in monorepo setups. GitHub workflows built-in path filters don't allow this because they don't work on a level of individual jobs or steps. Real world usage examples: - sentry.io - backend.yml - GoogleChrome/web.dev - lint-workflow.yml - blog post Configuring python linting to be part of CI/CD using GitHub actions - py linter.yml Supported workflows - Pull requests: - Workflow triggered by pull request or pull request target event - Changes are detected against the pull request base branch - Uses GitHub REST API to fetch a list of modified files - Requires pull-requests: read permission - Feature branches: - Workflow triggered by push or any other event - The base input parameter must not be the same as the branch that triggered the workflow - Changes are detected against the merge-base with the configured base branch or the default branch - Uses git commands to detect changes - repository must be already checked out - Merge queue: - Workflow triggered by merge group - The base and ref input parameters default to commit hashes from the event unless explicitly specified. - Uses git commands to detect changes - repository must be already checked out - Master, Rel","default_branch":null,"files":null,"tree":[],"storefront":"/r/dorny","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dorny/paths-filter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}