If I have in
paths excludes only, it will not work:
on: push: paths: - '!sub-project/docs/**'
What I suppose is to trigger workflow on all changes but
sub-project/docs/. What I get is triggering on any changes
It either should be fixed, or some doc updates is required.
If it’s fixed, then
paths-ignore option would not needed IMO.
As for docs, some updates could be done here: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#excluding-paths
It currently has:
# Excluding paths You can exclude paths using two types of filters. You cannot use both of these filters for the same event in a workflow. ** paths-ignore - Use the paths-ignore filter when you only need to exclude path names. ** paths - Use the paths filter when you need to filter paths for positive matches and exclude paths.
It should be stressed somehow that using excluds only in
paths will not work