Commit 4e59fba4e2
Unregistered key
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. |
| 4 | REPO_TO_LINT=$( | 4 | REPO_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 |
| 22 | fi | 22 | fi |