From 4e59fba4e20926991c31f86ae4dc29539c4f0750 Mon Sep 17 00:00:00 2001 From: Raymond Berger Date: Tue, 1 Jun 2021 09:07:57 -1000 Subject: [PATCH] Fix CI (GitHub actions) test failing (#2028) --- .github/workflows/repo_linter.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/repo_linter.sh b/.github/workflows/repo_linter.sh index 27025e2..ab20a2e 100755 --- a/.github/workflows/repo_linter.sh +++ b/.github/workflows/repo_linter.sh @@ -2,7 +2,7 @@ # Find the repo in the git diff and then set it to an env variables. REPO_TO_LINT=$( - git diff main -- readme.md | + git diff origin/main -- readme.md | # Look for changes (indicated by lines starting with +). grep ^+ | # Get the line that includes the readme. @@ -17,6 +17,6 @@ else echo "Cloning $REPO_TO_LINT" mkdir cloned cd cloned - git clone --depth=1 "$REPO_TO_LINT" . + git clone "$REPO_TO_LINT" . npx awesome-lint fi