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.