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