diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a11c388488a03..4d507914ee15a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -59,7 +59,7 @@ jobs: root="$file" # Keep going up the directory tree until we find a directory containing a marker file # (e.g., 'pyproject.toml' for python projects) - while [[ ! -f "$root/pyproject.toml" && "$root" != "." && "$root" != "/" ]]; do + while [[ ! -f "$root/pyproject.toml" && "$root" != "." && "$root" != "/" && "$root" != "./" ]]; do root=$(dirname "$root") done