I’ve created a workflow which should not be triggered when specified files are included in change. Here’s the condition.
on: pull_request: paths: - '!README.md' - '!workflow.png'
However, the workflow is not triggered, though the change contains many other files.
After some investigation, the workflow is triggered correctly in the following cases.
- Remove the entire
- Specify positive value on
on: pull_request: paths: - 'main.py'
I read the document again and couldn’t find the restriction about the pattern under
But maybe we can’t specify only negative patterns under