mirror of
https://github.com/sindresorhus/awesome.git
synced 2025-11-09 08:24:21 +01:00
Fix git diff command in repo linter (#2003)
This commit is contained in:
parent
7597b9013e
commit
9c7a5d03dc
2
.github/workflows/repo_linter.sh
vendored
2
.github/workflows/repo_linter.sh
vendored
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Find the repo in the git diff and then set it to an env variables.
|
# Find the repo in the git diff and then set it to an env variables.
|
||||||
REPO_TO_LINT=$(
|
REPO_TO_LINT=$(
|
||||||
git diff main readme.md |
|
git diff main -- readme.md |
|
||||||
# Look for changes (indicated by lines starting with +).
|
# Look for changes (indicated by lines starting with +).
|
||||||
grep ^+ |
|
grep ^+ |
|
||||||
# Get the line that includes the readme.
|
# Get the line that includes the readme.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user