From 653a9cb606052afa701b600e2de052fb944310ef Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Fri, 10 Jul 2020 08:53:21 -0500 Subject: [PATCH 1/2] small fix --- lib/worker.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/worker.sh b/lib/worker.sh index fd3a14f1..eb2ed7e5 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -142,6 +142,9 @@ function LintCodebase() { elif [[ $FILE == *"$TEST_CASE_FOLDER"* ]]; then # This is the test cases, we should always skip continue + elif [[ $FILE == *".git"* ]]; then + # This is likely the .git folder and shouldnt be parsed + continue fi ############## From 2f3011059a56a1d294f0b2ecef36f725007106b4 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Fri, 10 Jul 2020 09:10:42 -0500 Subject: [PATCH 2/2] no need to pull as were on the tip of the detached head state --- lib/buildFileList.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/buildFileList.sh b/lib/buildFileList.sh index 06f0110f..43f42751 100755 --- a/lib/buildFileList.sh +++ b/lib/buildFileList.sh @@ -26,7 +26,7 @@ function BuildFileList() { # Switch codebase back to the default branch to get a list of all files changed # ################################################################################# SWITCH_CMD=$( - git -C "$GITHUB_WORKSPACE" pull --quiet + # git -C "$GITHUB_WORKSPACE" pull --quiet git -C "$GITHUB_WORKSPACE" checkout "$DEFAULT_BRANCH" 2>&1 )