From 9c7a5d03dc55b50eba9b74ffdaa29bc5d450d550 Mon Sep 17 00:00:00 2001 From: Raymond Berger Date: Sun, 2 May 2021 08:20:26 -1000 Subject: [PATCH] Fix git diff command in repo linter (#2003) --- .github/workflows/repo_linter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/repo_linter.sh b/.github/workflows/repo_linter.sh index a407f9c8..27025e29 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 main -- readme.md | # Look for changes (indicated by lines starting with +). grep ^+ | # Get the line that includes the readme.