fix
This commit is contained in:
10
.github/workflows/check-mod.yml
vendored
10
.github/workflows/check-mod.yml
vendored
@@ -49,9 +49,9 @@ jobs:
|
|||||||
WIDTH=$(echo "$DIMENSIONS" | cut -dx -f1)
|
WIDTH=$(echo "$DIMENSIONS" | cut -dx -f1)
|
||||||
HEIGHT=$(echo "$DIMENSIONS" | cut -dx -f2)
|
HEIGHT=$(echo "$DIMENSIONS" | cut -dx -f2)
|
||||||
|
|
||||||
# If thumbnail exceeds 1920x500, exit with error
|
# Check if dimensions exceed 1920x500
|
||||||
if [ "$WIDTH" -gt 1920 ] || [ "$HEIGHT" -gt 500 ]; then
|
if [ "$WIDTH" -gt 1920 ] || [ "$HEIGHT" -gt 500 ]; then
|
||||||
echo "Error: Thumbnail in $MOD_DIR exceeds the 1920×500 recommended size."
|
echo "Error: Thumbnail in $MOD_DIR exceeds the recommended size of 1920×500."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -64,9 +64,9 @@ jobs:
|
|||||||
VALIDATE_JSON: true
|
VALIDATE_JSON: true
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Validate Meta.json Against Schema
|
- name: Validate meta.json Against Schema
|
||||||
uses: ajv-validator/ajv-cli-action@v1
|
uses: dsanders11/json-schema-validate-action@v1
|
||||||
with:
|
with:
|
||||||
schema: "./schema/meta.schema.json"
|
schema: "./schema/meta.schema.json"
|
||||||
files: "mods/*/meta.json"
|
file: "mods/*/meta.json"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user