mirror of
https://github.com/sindresorhus/awesome.git
synced 2024-12-18 15:06:08 +00:00
Fix CI (GitHub actions) test failing (#2028)
This commit is contained in:
parent
8514baa5f8
commit
4e59fba4e2
4
.github/workflows/repo_linter.sh
vendored
4
.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 origin/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.
|
||||||
@ -17,6 +17,6 @@ else
|
|||||||
echo "Cloning $REPO_TO_LINT"
|
echo "Cloning $REPO_TO_LINT"
|
||||||
mkdir cloned
|
mkdir cloned
|
||||||
cd cloned
|
cd cloned
|
||||||
git clone --depth=1 "$REPO_TO_LINT" .
|
git clone "$REPO_TO_LINT" .
|
||||||
npx awesome-lint
|
npx awesome-lint
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user