Skip to content

Commit

Permalink
Update Xiaomi-AX6000-hanwckf.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lalasou authored Oct 30, 2024
1 parent eb7b3b8 commit dbaee4d
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/Xiaomi-AX6000-hanwckf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,6 @@ jobs:
if: (!cancelled())
run: df -hT

- name: 整理文件并重命名
id: organize
if: env.UPLOAD_FIRMWARE == 'true' && !cancelled()
run: |
cd openwrt/bin/targets/*/*
rm -rf packages
sudo -E apt-get -qq install rename
rename 's/.*${{ env.DEVICE_NAME }}/${{ env.FILE_DATE }}-${{ env.OPENWRT_NAME }}-${{ env.DEVICE_NAME }}/' *
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
echo "status=success" >> $GITHUB_OUTPUT
- name: Set up SSH
run: |
mkdir -p ~/.ssh/
Expand All @@ -207,6 +196,18 @@ jobs:
make package/luci-app-design-config/compile V=99
scp -P 61041 -r [email protected]:/path/to/openwrt/bin/packages /tmp
continue-on-error: true

- name: 整理文件并重命名
id: organize
if: env.UPLOAD_FIRMWARE == 'true' && !cancelled()
run: |
cd openwrt/bin/targets/*/*
rm -rf packages
sudo -E apt-get -qq install rename
rename 's/.*${{ env.DEVICE_NAME }}/${{ env.FILE_DATE }}-${{ env.OPENWRT_NAME }}-${{ env.DEVICE_NAME }}/' *
echo "FIRMWARE=$PWD" >> $GITHUB_ENV
echo "status=success" >> $GITHUB_OUTPUT
- name: 打包上传固件到Actions Artifacts
uses: actions/upload-artifact@main
Expand Down

0 comments on commit dbaee4d

Please sign in to comment.