diff --git a/.github/workflows/update_parts_database.yml b/.github/workflows/update_parts_database.yml index 1f3c62f..b66cb6b 100644 --- a/.github/workflows/update_parts_database.yml +++ b/.github/workflows/update_parts_database.yml @@ -28,8 +28,12 @@ jobs: cd db_build wget -q https://yaqwsx.github.io/jlcparts/data/cache.zip - for seq in $(seq 1 9); do - wget -q https://yaqwsx.github.io/jlcparts/data/cache.z0$seq || true + + VOLUMES=$(7z l cache.zip | grep "Volume Index = " | grep -Eoh "[0-9]+") + + for seq in $(seq 1 $VOLUMES); do + CACHE=$(printf '%02d' $seq) + wget -q https://yaqwsx.github.io/jlcparts/data/cache.z$CACHE || true done 7z x cache.zip