Skip to content

Commit 585bd27

Browse files
authored
Update int.cloudbuild.yaml
1 parent 4edbf45 commit 585bd27

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build/int.cloudbuild.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ steps:
3636
3737
# Do not prune if changing tests themselves
3838
_INFRA_FOLDERS="build test .github"
39-
while read _changed_folders; do
40-
echo "${_changed_folders%/}"
41-
if [[ "${_INFRA_FOLDERS}" =~ "${_changed_folders%/}" ]]; then
42-
echo "Infrastructure folder ${_changed_folders%/} has changed; no tests will be pruned."
39+
while read d; do
40+
echo "${d%/}"
41+
if [[ "${_INFRA_FOLDERS}" =~ "${d%/}" ]]; then
42+
echo "Infrastructure folder ${d%/} has changed; no tests will be pruned."
4343
exit 0 # do not prune
4444
fi
45-
done
45+
done < _changed_folders
4646
4747
# Remove leaf folders without changes or non-tf resources
4848
for d in `find . -type d -name 'test' -prune -o -links 2 -printf '%P\n'`; do

0 commit comments

Comments
 (0)