From 94029a7ea19ee8df94fdf44a198d02ea35fb3370 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 27 Mar 2025 10:23:15 +0100 Subject: [PATCH] edit workflow --- .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 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