Skip to content

Commit 5b61a13

Browse files
committed
Fix validate PR check
1 parent 43f8970 commit 5b61a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/investigation-test-coverage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BASE_SHA=$(git ls-remote "https://github.com/openshift/configuration-anomaly-det
1111
PR_SHA=$(git rev-parse HEAD)
1212

1313
# Obtaining instances of files added in the PR
14-
diff_files=$(git diff --name-status "$BASE_SHA" "$PR_SHA" | grep '^A' | awk '{print $2}')
14+
diff_files=$(git diff --name-status "$BASE_SHA" "$PR_SHA" | (grep '^A' || true;) | awk '{print $2}')
1515

1616
# Filter to relevant directory (investigations folder)
1717
investigations=$(echo "$diff_files" | grep '^pkg/investigations/' || true)

0 commit comments

Comments
 (0)