Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 29 additions & 15 deletions .github/workflows/repo_linter.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
#!/bin/bash

# Find the repo in the git diff and then set it to an env variables.
# Find the repo in the git diff and then set it to an env variable.
REPO_TO_LINT=$(
git diff origin/main -- readme.md |
# Look for changes (indicated by lines starting with +).
grep ^+ |
# Get the line that includes the readme.
grep -Eo 'https.*#readme' |
# Get just the URL.
sed 's/#readme//')
git diff origin/main -- readme.md |
grep ^+ |
grep -Eo 'https.*#readme' |
sed 's/#readme//' |
head -n 1 # Use only the first match if multiple
)

# If there's no repo found, exit quietly.
if [ -z "$REPO_TO_LINT" ]; then
echo "No new link found in the format: https://....#readme"
else
echo "Cloning $REPO_TO_LINT"
mkdir cloned
cd cloned
git clone "$REPO_TO_LINT" .
npx awesome-lint
echo "No new link found in the format: https://....#readme"
exit 0
fi

echo "Cloning $REPO_TO_LINT"

CLONE_DIR="cloned"

# Remove existing cloned directory if exists
if [ -d "$CLONE_DIR" ]; then
rm -rf "$CLONE_DIR"
fi

mkdir "$CLONE_DIR"
cd "$CLONE_DIR" || exit 1

git clone "$REPO_TO_LINT" .

# Run awesome-lint
npx awesome-lint

# Go back to original directory
cd ..
1 change: 1 addition & 0 deletions README.bl.md

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@

## Contents

- [Contents](#contents)
- [Platforms](#platforms)
- [Programming Languages](#programming-languages)
- [Front-End Development](#front-end-development)
Expand Down Expand Up @@ -248,7 +249,8 @@
- [Vala](https://github.com/desiderantes/awesome-vala#readme) - Programming language designed to take full advantage of the GLib and GNOME ecosystems, while preserving the speed of C code.
- [Coq](https://github.com/coq-community/awesome-coq#readme) - Formal language and environment for programming and specification which facilitates interactive development of machine-checked proofs.
- [V](https://github.com/vlang/awesome-v#readme) - Simple, fast, safe, compiled language for developing maintainable software.
- [Zig](https://github.com/catdevnull/awesome-zig#readme) - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
- Zig - General-purpose programming language and toolchain (No longer avaliable)

- [Move](https://github.com/MystenLabs/awesome-move#readme) - Domain-specific programming language for writing safe smart contracts.
- [Esolangs](https://github.com/angrykoala/awesome-esolangs#readme) - Programming languages designed for experimentation or as jokes rather than actual use.
- [VBA](https://github.com/sancarn/awesome-vba#readme) - An event-driven version of Visual Basic 6.0 built into most Microsoft Office apps for automation and scripting.
Expand Down Expand Up @@ -893,5 +895,5 @@
- [Awesome Search](https://awesomelists.top) - Quick search for Awesome lists.
- [StumbleUponAwesome](https://github.com/basharovV/StumbleUponAwesome) - Discover random pages from the Awesome dataset using a browser extension.
- [Awesome CLI](https://github.com/umutphp/awesome-cli) - A simple command-line tool to dive into Awesome lists.
- [Awesome Viewer](https://awesome.digitalbunker.dev) - A visualizer for all of the above Awesome lists.
- Awesome Viewer - A visualizer for all of the above Awesome lists (No longer avaliable)
- [Track Awesome List](https://www.trackawesomelist.com) - View the latest updates of Awesome lists.