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.
1 parent ca5bf6f commit e17a964Copy full SHA for e17a964
build/int.cloudbuild.yaml
@@ -35,12 +35,12 @@ 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."
+ git diff --quiet origin/main build test .github/workflows
+ CHANGED=$?
+ if [[ "${CHANGED}" -ne 0 ]]; then
41
+ echo "Infrastructure folders have changed; no tests will be pruned."
42
exit 0 # do not prune
- fi
43
- done < _changed_folders
+ fi
44
45
# Remove base folders without changes
46
for d in *; do
0 commit comments