Reuse paths filter in GitHub Action? #37645
-
I've recently learned about the possibility to restrict workflows to run only when certain files in the repository have changed. Now I'm wondering if it's possible to avoid repetition as seen in this example. on:
push:
branches:
- main
paths:
- 'src/**'
- 'index.html'
- 'package.json'
- 'pnpm-lock.yaml'
pull_request:
branches:
- main
paths:
- 'src/**'
- 'index.html'
- 'package.json'
- 'pnpm-lock.yaml' Is there something similar to |
Beta Was this translation helpful? Give feedback.
Answered by
airtower-luna
Oct 28, 2022
Replies: 1 comment
-
Unfortunately the answer is a simple "no". 🙁 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
idleberg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately the answer is a simple "no". 🙁