diff --git a/internal/kokoro/presubmit.sh b/internal/kokoro/presubmit.sh index c5f2abde7388..85d9a9004022 100755 --- a/internal/kokoro/presubmit.sh +++ b/internal/kokoro/presubmit.sh @@ -78,7 +78,7 @@ runPresubmitTests() { } SIGNIFICANT_CHANGES=$(git --no-pager diff --name-only origin/main...$KOKORO_GIT_COMMIT_google_cloud_go | - grep -Ev '(\.md$|^\.github|\.json$|\.yaml$)' || true) + grep -Ev '(\.md$|^\.github|\.json$|\.yaml$)' | xargs dirname | sort -u || true) if [ -z $SIGNIFICANT_CHANGES ]; then echo "No changes detected, skipping tests"