Fix CI (GitHub actions) test failing (#2028)

pull/2013/head
Raymond Berger 3 years ago committed by GitHub
parent 8514baa5f8
commit 4e59fba4e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save