This message was deleted.
# help
b
This message was deleted.
l
@narrow-dinner-45042 something like this might work:
Copy code
version: 0.1
projects:
{{- range $project := matchPaths "terraform/:name(.*)/main.tf" }}
  - path: {{ $project._dir }}
    name: {{ $project.name }}
{{- end }}
đź‘€ 1
n
ooo, thanks! Ill try it out
l
let me know if it works
n
that appears to work!
thank you
l
No worries!
n
hi @little-author-61621, following up on this thread. I added an
infracost.yml.tmpl
to the root of my repo and integrated infracost with the repo, but I am seeing infracost still running checks on PRs that dont touch any paths in my config file. Is this expected? Do these runs count against the 1000 runs/mo even if they detect no terraform changes?
l
If you have the
Only post a comment in pull requests that have Terraform changes (default)
setting turned on then any run that has no tf changes won’t be counted. Otherwise all runs are counted even if the paths aren’t specified in the config file because Infracost still runs to parse and check the config file paths.
n
got it, thanks!