mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-04-22 20:28:47 +02:00
🥅 Adds error handling
Signed-off-by: Bjorn Lammers <walkxnl@gmail.com>
This commit is contained in:
parent
e4867417b8
commit
0bf7ce1daa
6
.github/workflows/png-svg-compression.yml
vendored
6
.github/workflows/png-svg-compression.yml
vendored
@ -26,10 +26,10 @@ jobs:
|
|||||||
find png/ -iname "*.png" -print0 | while read -d $'\0' file
|
find png/ -iname "*.png" -print0 | while read -d $'\0' file
|
||||||
do
|
do
|
||||||
echo "Processing file $current_file of $total_files: $file"
|
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))
|
current_file=$((current_file+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Compress SVGs
|
- name: Compress SVGs
|
||||||
run: |
|
run: |
|
||||||
total_files=$(find svg/ -iname "*.svg" | wc -l)
|
total_files=$(find svg/ -iname "*.svg" | wc -l)
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
find svg/ -iname "*.svg" -print0 | while read -d $'\0' file
|
find svg/ -iname "*.svg" -print0 | while read -d $'\0' file
|
||||||
do
|
do
|
||||||
echo "Processing file $current_file of $total_files: $file"
|
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))
|
current_file=$((current_file+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user