From c18f183db918a02d44e3261ef70669dde9a26e34 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Tue, 28 Jul 2020 18:22:58 +0100 Subject: [PATCH] .git would be a directory if present, fix test --- .github/workflows/pr-annotate-with-flake8.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-annotate-with-flake8.yml b/.github/workflows/pr-annotate-with-flake8.yml index db5c0114..54e91393 100644 --- a/.github/workflows/pr-annotate-with-flake8.yml +++ b/.github/workflows/pr-annotate-with-flake8.yml @@ -26,7 +26,7 @@ jobs: BASE_REF: ${{github.base_ref}} run: | # Checkout might not have happened. - if [ ! -f ".git" ]; then exit 0 ; fi + if [ ! -d ".git" ]; then exit 0 ; fi # Get a list of files ending with ".py", stuff in environment. # We don't rely on exit status because Workflows run with # "set -e" so any failure in a pipe is total failure.