We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d94e9c commit d87e100Copy full SHA for d87e100
build/int.cloudbuild.yaml
@@ -43,9 +43,9 @@ steps:
43
fi
44
done
45
46
- # Remove leaf folders without changes and intermediate folders without .tf
+ # Remove leaf folders without changes or non-tf resources
47
for d in `find . -type d -name 'test' -prune -o -links 2 -printf '%P\n'`; do
48
- if ! grep -q "^$d" _changed_folders && [ -n "$(find . -maxdepth 1 -name '*.tf' -type f -print -quit) $d" ]; then
+ if ! grep -q "^$d" _changed_folders && [ -n "$(find . -maxdepth 1 -not -name '*.tf' -type f -print -quit) $d" ]; then
49
rm -rf $d;
50
51
0 commit comments