mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2024-11-30 09:25:42 +00:00
let's hope that works
This commit is contained in:
parent
e4878d215d
commit
aa9ce687d1
17
.github/workflows/scripts/check-size.sh
vendored
17
.github/workflows/scripts/check-size.sh
vendored
@ -11,15 +11,24 @@ check_size() {
|
||||
fi
|
||||
}
|
||||
|
||||
check_md_name() {
|
||||
shouldname="$(echo "$1" |
|
||||
iconv --to-code=utf-8 |
|
||||
sed "s/^\(src\/\)\?/src\//" |
|
||||
tr '[:upper:]' '[:lower:]' |
|
||||
tr ' ' '-')"
|
||||
if [ "$shouldname" != "$1" ]; then
|
||||
echo "$1 should be named $shouldname."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
git diff --name-only `git merge-base origin/master HEAD` | while IFS= read -r file; do
|
||||
case "$file" in
|
||||
*.webp)
|
||||
echo "Checking size of $file"
|
||||
check_size $file
|
||||
;;
|
||||
*)
|
||||
echo "Skipping $file"
|
||||
;;
|
||||
*.md) check_md_name "$file" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
@ -20,5 +20,5 @@
|
||||
5. Garnish with chopped chives on top.
|
||||
|
||||
## Contribution
|
||||
- Joe Powerhouse
|
||||
- BTC: 1KPxw9js2VukakhMv2wUUFUQZnHQL842ju
|
||||
|
||||
- Joe Powerhouse, BTC: 1KPxw9js2VukakhMv2wUUFUQZnHQL842ju
|
Loading…
Reference in New Issue
Block a user