Skip to content

Action ignores included path #26510

Answered by BrightRan
rbellamy asked this question in Actions
Discussion options

You must be logged in to vote

@rbellamy ,

I notice you are using the pattern ’ ubuntu1?04.json’ on the push event in your workflow. I think you confuse the * character with ? character in the pattern for paths filter.
The ? character matches zero or one of the preceding character, so the pattern ’ ubuntu1?04.json’ only can match the following paths:

  • ubuntu104.json
  • ubuntu04.json

If you want the pattern can match below paths in your repository, you should use the character (’ ubuntu1*04.json’), instead of the ? character. The wildcard matches any character, but does not match slash (/).

  • ubuntu1604.json
  • ubuntu1804.json

More details, you can reference the docs about patterns to match file paths.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants