Image Check: exclude deleted files

This commit is contained in:
Charles Dang 2024-09-04 03:46:43 -04:00
parent 9c732d41f1
commit a46c3c0051

View File

@ -29,7 +29,7 @@ jobs:
- name: check image metadata
run: |
mapfile -t image_files < <(git diff --name-only "$BASE_SHA" "$HEAD_SHA" | grep -E '\.(webp|png|je?pg)$')
mapfile -t image_files < <(git diff --name-only --diff-filter=d "$BASE_SHA" "$HEAD_SHA" | grep -E '\.(webp|png|je?pg)$')
# cycle through the changed image files, make sure they have the right fields
for file in "${image_files[@]}"; do
# check Artist tag, fail if missing