Update Lean_x86.yml

This commit is contained in:
moruiris 2022-03-04 14:46:01 +08:00 committed by GitHub
parent 764924356a
commit 346f2d2d0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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