1
0

Enable continue-on-error for thumbnail dimension check

This commit is contained in:
Breezebuilder
2025-03-27 13:53:20 +11:00
parent 49edd9f34e
commit 3492447e90

View File

@@ -88,6 +88,7 @@ jobs:
done < changed_mods.txt
- name: Check Thumbnail Dimensions
continue-on-error: true
if: steps.find-changed-mods.outputs.changed_mods_found == 'true'
run: |
while read -r mod_path; do
@@ -96,7 +97,8 @@ jobs:
THUMBNAIL="$mod_path/thumbnail.jpg"
if [ -f "$THUMBNAIL" ]; then
# Extract width and height using ImageMagick
# Extract width and height using ImageMagick identify
# Using identify-im6.q16 directly as identify is a symlink that is not created by the cache restoration
DIMENSIONS=$(/usr/bin/identify-im6.q16 -format "%wx%h" "$THUMBNAIL")
WIDTH=$(echo "$DIMENSIONS" | cut -dx -f1)
HEIGHT=$(echo "$DIMENSIONS" | cut -dx -f2)