Skip to content

GYlove1994 Paths Changes Filter

Actions
Execute your workflow steps only if relevant files are modified
v2
Latest
Star (0)

Tags

 (1)

Paths Changes Filter

This is a fork of dorny/paths-filter

!!!!!!!!!!!!Important!!!!!!!!!!!!

Please use gylove1994/paths-filter@v2.

What's Changed

We add some new features to the original project, such as:

  • Support ignore file and paths by using ignore option in picomatch

Usage

A example of usage is as follows:

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: gylove1994/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

GYlove1994 Paths Changes Filter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Execute your workflow steps only if relevant files are modified
v2
Latest

Tags

 (1)

GYlove1994 Paths Changes Filter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.