From 609ca25d8b13b76e7ac7ec590efdc6b0e97e797c Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 27 Mar 2025 10:37:07 +0100 Subject: [PATCH] edit --- .github/workflows/check-format.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index 8090a98..781f7c6 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -48,9 +48,10 @@ jobs: fi fi + # If le fichier contient _animated, il doit y avoir un fichier png ou jpg qui contient le même nom et _static à la place de _animated if [[ $basename == *"_animated"* ]]; then t=$(echo "$basename" | sed 's/animated/static/') - 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