Skip to content

meiroio/paths-filter

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

Paths Changes Filter

Fork of dorny/paths-filter with additional features.

Installation

- uses: meiroio/paths-filter@v2

What's New

This fork adds:

  • Ignore patterns: Exclude files from matching using the ignore option (powered by picomatch)

Usage

Example configuration:

jobs:
  check-changes:
    outputs:
      run-client: ${{ steps.filter.outputs.client }}
      run-server: ${{ steps.filter.outputs.server }}
      run-all: ${{ steps.filter.outputs.all }}
    steps:
      - uses: actions/checkout@v4
      - uses: meiroio/paths-filter@v2
        id: filter
        with:
          filters: |
            client:
              pattern:
                - 'src/**'
                - 'tsconfig.src.json'
                - 'vite.config.ts'
            server:
              pattern:
                - 'srv/**'
                - 'prisma/**'
                - 'tsconfig.srv.json'
                - 'tsconfig.srv.build.json'
                - 'nest-cli.json'
            all:
              pattern:
                - '**'
                - '*'
              ignore:
                - 'src/**'
                - 'srv/**'
                - 'prisma/**'
                - 'nest-cli.json'
                - 'tsconfig.src.json'
                - 'vite.config.ts'
                - 'tsconfig.srv.json'
                - 'tsconfig.srv.build.json'

License

The scripts and documentation in this project are released under the MIT License

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 94.4%
  • JavaScript 5.6%