Commit 4e59fba4e2

4e59fba4e20926991c31f86ae4dc29539c4f0750

parent: 8514baa5f8

Unregistered key

Raymond Berger <RayBB@users.noreply.github.com> · 2021-06-01 19:07 UTC
committer: <noreply@github.com>

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

Layout: unified · split

.github/workflows/repo_linter.sh +2 −2
@@ -2,7 +2,7 @@
2 2
3# Find the repo in the git diff and then set it to an env variables. 3# Find the repo in the git diff and then set it to an env variables.
4REPO_TO_LINT=$( 4REPO_TO_LINT=$(
5 git diff main -- readme.md | 5 git diff origin/main -- readme.md |
6 # Look for changes (indicated by lines starting with +). 6 # Look for changes (indicated by lines starting with +).
7 grep ^+ | 7 grep ^+ |
8 # Get the line that includes the readme. 8 # Get the line that includes the readme.
@@ -17,6 +17,6 @@ else
17 echo "Cloning $REPO_TO_LINT" 17 echo "Cloning $REPO_TO_LINT"
18 mkdir cloned 18 mkdir cloned
19 cd cloned 19 cd cloned
20 git clone --depth=1 "$REPO_TO_LINT" . 20 git clone "$REPO_TO_LINT" .
21 npx awesome-lint 21 npx awesome-lint
22fi 22fi