Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run awesome-lint on new additions #1962

Merged
merged 14 commits into from
Apr 19, 2021
Prev Previous commit
Update repo_linter.sh
sindresorhus authored Apr 19, 2021
commit d27b8769dc9bcdea5951cbb1c5340a581b0612bb
6 changes: 3 additions & 3 deletions .github/workflows/repo_linter.sh
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@
# Find the repo in the git diff and then set it to an env variables.
REPO_TO_LINT=$(
git diff main readme.md |
# Look for changes (indicated by lines startingi with +)
# Look for changes (indicated by lines starting with +).
grep ^+ |
# Get the line that includes the readme
# Get the line that includes the readme.
grep -Eo 'https.*#readme' |
# Get just the url
# Get just the URL.
sed 's/#readme//')

# If there's no repo found, exit quietly.