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.
2 parents 1d9a71b + 7c67f11 commit fe13294Copy full SHA for fe13294
build/int.cloudbuild.yaml
@@ -35,12 +35,13 @@ steps:
35
cat _changed_folders
36
37
# 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."
+ set +e
+ _build_changes=$(git diff origin/main build test .github/workflows)
+ set -e
41
+ if [[ -n "${_build_changes}" ]]; then
42
+ echo "Infrastructure folders have changed; no tests will be pruned."
43
exit 0 # do not prune
- fi
- done < _changed_folders
44
+ fi
45
46
# Remove base folders without changes
47
for d in *; do
0 commit comments