Update OpenWrt_x86.yml
This commit is contained in:
parent
a800acf31f
commit
764924356a
8
.github/workflows/OpenWrt_x86.yml
vendored
8
.github/workflows/OpenWrt_x86.yml
vendored
@ -110,14 +110,14 @@ jobs:
|
|||||||
if: env.UPLOAD_FIRMWARE == 'true' && !cancelled()
|
if: env.UPLOAD_FIRMWARE == 'true' && !cancelled()
|
||||||
run: |
|
run: |
|
||||||
mkdir firmware && find openwrt/bin/targets/*/*/ -maxdepth 1 \
|
mkdir firmware && find openwrt/bin/targets/*/*/ -maxdepth 1 \
|
||||||
-name "*kernel*" \
|
-name "*image.iso" \
|
||||||
-or -name "*factory*" \
|
-or -name "*squashfs-combined.img.gz" \
|
||||||
-or -name "*sysupgrade*" \
|
|
||||||
| xargs -i mv -f {} ./firmware/
|
| xargs -i mv -f {} ./firmware/
|
||||||
cp openwrt/.config ./firmware/${{ env.date1 }}_${{ env.OPENWRT_NAME }}_${{ env.DEVICE_NAME }}.config
|
cp openwrt/.config ./firmware/${{ env.date1 }}_${{ env.OPENWRT_NAME }}_${{ env.DEVICE_NAME }}.config
|
||||||
cd firmware
|
cd firmware
|
||||||
sudo -E apt-get -qq install rename
|
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 "FIRMWARE=$PWD" >> $GITHUB_ENV
|
||||||
echo "::set-output name=status::success"
|
echo "::set-output name=status::success"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user