Update Lean_x86.yml

This commit is contained in:
moruiris 2022-03-04 17:22:10 +08:00 committed by GitHub
parent 857da351df
commit 2a7e742838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,13 +110,13 @@ jobs:
if: env.UPLOAD_FIRMWARE == 'true' && !cancelled()
run: |
mkdir firmware && find openwrt/bin/targets/*/*/ -maxdepth 1 \
-name "*image.iso" \
-name "*squashfs-combined.vmdk" \
-or -name "*squashfs-combined.img.gz" \
| xargs -i mv -f {} ./firmware/
cp openwrt/.config ./firmware/${{ env.date1 }}_${{ env.OPENWRT_NAME }}_x86-64.config
cd firmware
sudo -E apt-get -qq install rename
rename 's/^/${{ env.date1 }}_${{ env.OPENWRT_NAME }}_/' *.iso
rename 's/^/${{ env.date1 }}_${{ env.OPENWRT_NAME }}_/' *..vmdk
rename 's/^/${{ env.date1 }}_${{ env.OPENWRT_NAME }}_/' *.img.gz
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
echo "::set-output name=status::success"