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