Github Actions on pull_request filters all its changed paths
2023-04-16 | 2 mins | 113 words
When you trigger your Github-Action on the pull_request
action, the paths
and paths-ignore
filter applies to all changed path of the particual pull request. I assumed the filters would only be applied on the pushed contents of the latest HEAD of the request.
My goal was to don’t trigger the workflow for testing the whole application, when only md
or txt
files were changed.
So to achive my goal, I need to use on:push
event with the appropriate paths/paths-ignore
defined.
I could have saved some time, if I had started with a blank on
config part to match my expectations and worked then from there onwards to an final solution for the repo.