From b8784c16ea75d2e55a89730b498f1e0d499e2597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96=2E=20Efe=20D=2E?= <67526259+skyline69@users.noreply.github.com> Date: Wed, 1 Jan 2025 18:15:14 +0100 Subject: [PATCH] fix --- .github/workflows/check-mod.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-mod.yml b/.github/workflows/check-mod.yml index 8d9114a8..5ed5e359 100644 --- a/.github/workflows/check-mod.yml +++ b/.github/workflows/check-mod.yml @@ -49,9 +49,9 @@ jobs: WIDTH=$(echo "$DIMENSIONS" | cut -dx -f1) 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 - 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 fi fi @@ -64,9 +64,9 @@ jobs: VALIDATE_JSON: true GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Validate Meta.json Against Schema - uses: ajv-validator/ajv-cli-action@v1 + - name: Validate meta.json Against Schema + uses: dsanders11/json-schema-validate-action@v1 with: schema: "./schema/meta.schema.json" - files: "mods/*/meta.json" + file: "mods/*/meta.json"