diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index d06c9bf..a6f152f 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -50,7 +50,7 @@ jobs: if [[ $basename == *"_animated"* ]]; then t=$(echo "$basename" | sed 's/_static/_animated/') - if [ ! -f "${t}.png" ] && [ ! -f "${t}.jpg" ]; then + if [ ! -f "${t}.png" ] || [ ! -f "${t}.jpg" ]; then echo "❌ Error: $file has a animated tag but no png or jpg file" exit 1 fi