GitHub Actions "paths" is too wide #25582
-
Hey there. I’m trying to make PR auto approve basing on following logic: - modified files are in “dir1” and “dir2”: PR auto approve is not triggered … you can configure a workflow to run when … at least one modified file matches the configured “paths” … So each of following code examples auto-approves PR even if modified files are not only in “dir1”, but in “dir2” as well.
How can I restrict “paths” search pattern to trigger PR approving only if “dir1” is the only place with modified files? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Eventually got the list of the changed files in the PR as follwing:
Then restricted |
Beta Was this translation helpful? Give feedback.
Eventually got the list of the changed files in the PR as follwing:
Then restricted
paths
trigger by working only with those PRs, which list above consist only of necessary dirs.