Skip to content

Commit 6f35db5

Browse files
committed
set -e in place, rely on output rather than exit codes
1 parent 7531630 commit 6f35db5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build/int.cloudbuild.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ steps:
3535
cat _changed_folders
3636
3737
# Do not prune if changing tests themselves
38-
git diff --quiet origin/main build test .github/workflows
39-
_CHANGED=$?
40-
if [[ "${_CHANGED}" -ne 0 ]]; then
38+
_build_changes=$(git diff --quiet origin/main build test .github/workflows)
39+
if [[ -n "${_build_changes}" ]]; then
4140
echo "Infrastructure folders have changed; no tests will be pruned."
4241
exit 0 # do not prune
4342
fi

0 commit comments

Comments
 (0)