From 0bf7ce1daa81f6da7e1893b51db1e9c60a8ac520 Mon Sep 17 00:00:00 2001 From: Bjorn Lammers Date: Sun, 16 Apr 2023 20:52:14 +0200 Subject: [PATCH] :goal_net: Adds error handling Signed-off-by: Bjorn Lammers --- .github/workflows/png-svg-compression.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/png-svg-compression.yml b/.github/workflows/png-svg-compression.yml index 29e7c866..bed8c21e 100644 --- a/.github/workflows/png-svg-compression.yml +++ b/.github/workflows/png-svg-compression.yml @@ -26,10 +26,10 @@ jobs: find png/ -iname "*.png" -print0 | while read -d $'\0' file do echo "Processing file $current_file of $total_files: $file" - pngquant --force --ext .png --skip-if-larger --verbose --speed 1 $file + pngquant --force --ext .png --skip-if-larger --verbose --speed 1 $file || true current_file=$((current_file+1)) done - + - name: Compress SVGs run: | total_files=$(find svg/ -iname "*.svg" | wc -l) @@ -38,7 +38,7 @@ jobs: find svg/ -iname "*.svg" -print0 | while read -d $'\0' file do echo "Processing file $current_file of $total_files: $file" - svgo --quiet --multipass --show-progress $file + svgo --quiet --multipass --show-progress $file || true current_file=$((current_file+1)) done