Enable continue-on-error for thumbnail dimension check
This commit is contained in:
4
.github/workflows/check-mod.yml
vendored
4
.github/workflows/check-mod.yml
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user