Usage of regular expressions (regex) on when_modified
field
#5310
Unanswered
dgteixeira
asked this question in
Q&A
Replies: 1 comment
-
I believe its not a regex, its a glob. See docs here https://www.runatlantis.io/docs/repo-level-atlantis-yaml.html#autoplan
Please see the docker ignore syntax https://cratecode.com/info/dockerignore-usage Since it doesn't support regex, it also may not be possible. Try the docs above and see if it helps. May I ask why you have some tf files you want to ignore in the same dir as tf files you want to include? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Community Note
Describe the user story
Hello, I'd like to use regular expressions in the
when_modified
field of autoplanning to find all files with a specific pattern.Example
In my current situation, I have two different configs in my atlantis.yaml, in order to skip the refresh validation in specific files, as such:
However, this just targets all the files in this directory.
And, when I try to insert a regular expression (like below), the results do not match what I'm trying to achieve, because it just never triggers the project.
Describe the solution you'd like
What I would like to do is pass some regex, like below, to target all the tf files that do not start with an "i".
Describe the drawbacks of your solution
Interpreting regular expressions might be unwanted in this workflow.
Describe alternatives you've considered
Listing all the files manually in the .yaml file
Beta Was this translation helpful? Give feedback.
All reactions