build: fix cache

This commit is contained in:
John Doe
2021-03-11 09:49:12 +08:00
parent 42959b58ec
commit baabbd7754

View File

@@ -38,7 +38,7 @@ jobs:
run: |
cd
sudo curl -sL https://raw.githubusercontent.com/klever1988/nanopi-openwrt/zstd-bin/zstd | sudo tee /usr/bin/zstd > /dev/null
for i in {1..6}
for i in {1..10}
do
curl -sL --fail https://github.com/klever1988/sshactions/releases/download/cache/lede.$DEVICE.img.zst.0$i || break
done | zstdmt -d -o lede.img || (truncate -s 10g lede.img && mkfs.btrfs -M lede.img)