mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 09:32:01 +00:00
Image Check: exclude deleted files
This commit is contained in:
parent
9c732d41f1
commit
a46c3c0051
2
.github/workflows/image_metadata.yml
vendored
2
.github/workflows/image_metadata.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user