Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Pilot Lvl 1
Message 1 of 4

Path filtering for jobs and steps

It would be nice if we can have path filtering at the job and step level (without implementing this on our own).

With this feature, I can avoid creating different lint workflows for different types of files and unify them into one lint workflows with different jobs:

 

For example:

# lint-python.yml
name: lint-python
on:
  push:
    paths:
      - '**.py'

jobs:
  lint:
    - ...

# lint-markdown.yml
name: lint-markdown
on:
  push:
    paths:
      - '**.md'

jobs:
  lint:
    - ...

can be transformed into something like:

# lint.yml
name: lint
on: push

jobs:
  lint-python:
    - paths:
      - '**.py'
    - ...
  lint-markdown:
    - paths:
      - '**.md'
    - ...
3 Replies
Community Manager
Message 2 of 4

Re: Path filtering for jobs and steps

Hi @SamChou19815,

Thanks for this feedback! We're always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I've logged your feature request in our internal feature request list. Though I can't guarantee anything or share a timeline for this, I can tell you that it's been shared with the appropriate teams for consideration.


Thank you for your perspective and your contribution!
All the Best

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 3
Message 3 of 4

Re: Path filtering for jobs and steps

Definitely would like to see this feature implemented.

Ground Controller Lvl 2
Message 4 of 4

Re: Path filtering for jobs and steps

Would be very nice to have this.
GitHub could yo tell us what the status is on this feature request?