Skip to content

Commit d87e100

Browse files
authored
Update int.cloudbuild.yaml
1 parent 7d94e9c commit d87e100

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/int.cloudbuild.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ steps:
4343
fi
4444
done
4545
46-
# Remove leaf folders without changes and intermediate folders without .tf
46+
# Remove leaf folders without changes or non-tf resources
4747
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
48+
if ! grep -q "^$d" _changed_folders && [ -n "$(find . -maxdepth 1 -not -name '*.tf' -type f -print -quit) $d" ]; then
4949
rm -rf $d;
5050
fi
5151
done

0 commit comments

Comments
 (0)