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:
# 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' - ...
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.
Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!