Skip to content

Commit e17a964

Browse files
committed
1 parent ca5bf6f commit e17a964

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
@@ -35,12 +35,12 @@ steps:
3535
cat _changed_folders
3636
3737
# Do not prune if changing tests themselves
38-
while read d; do
39-
if [[ "build test .github/workflows" =~ "${d%/}" ]]; then
40-
echo "Infrastructure folder ${d%/} has changed; no tests will be pruned."
38+
git diff --quiet origin/main build test .github/workflows
39+
CHANGED=$?
40+
if [[ "${CHANGED}" -ne 0 ]]; then
41+
echo "Infrastructure folders have changed; no tests will be pruned."
4142
exit 0 # do not prune
42-
fi
43-
done < _changed_folders
43+
fi
4444
4545
# Remove base folders without changes
4646
for d in *; do

0 commit comments

Comments
 (0)