-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
173 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
actions_dir=".github/actions" | ||
readme_file="docs/README.md" | ||
missing_entries=0 | ||
|
||
# List all folders under .github/actions | ||
folders=$(ls -d $actions_dir/*/) | ||
|
||
# Check each folder | ||
for folder in $folders; do | ||
action_name=$(basename $folder) | ||
search_string="### $action_name" | ||
if ! grep -q "$search_string" "$readme_file"; then | ||
echo "No entry found for $search_string in README.md" | ||
((missing_entries++)) | ||
fi | ||
done | ||
|
||
# Report the number of missing entries | ||
if [ $missing_entries -gt 0 ]; then | ||
echo "$missing_entries entries not found in README.md" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters