Skip to content

Commit

Permalink
Fix CI, number of volumes has increased
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouni committed Mar 26, 2024
1 parent 874b89b commit a441c61
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/update_parts_database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a441c61

Please sign in to comment.