Description
Description:
I cannot get file exclusion to work with the syntax described in the Readme. We have an index.rst
that we use as release notes which gets edited everytime a PR makes changes to the repo. I would like to exclude it from the labeler action. I use the following syntax:
docs:
- all:
- changed-files:
- any-glob-to-any-file: ['docs/**', 'README.md', 'AUTHORS.rst', 'CITATION.cff']
- all-globs-to-any-file: '!docs/source/news/index.rst'
I have tried all sorts of variations of globs, in particular also all-globs-to-all-files
for the exclusion (acoular/acoular#491), and checked for other issues. Most issues I found use the old syntax, so are not really helpful. I bandwagoned on #801, but the suggestions there did not help. I am thinking this might be a bug.
Action version:
5.0.0
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Repro steps:
CI in question: https://github.com/acoular/acoular/blob/master/.github/labeler.yml
Expected behavior:
I would expect changes in docs/source/news/index.rst
not to lead the action to add the docs
label.
Actual behavior:
The docs
label appears in nearly all our PRs because docs/source/news/index.rst
is edited to describe the changes made in that PR.