Add auto retry when wget fail

This commit is contained in:
xopenwrt 2025-07-21 20:21:07 +08:00 committed by GitHub
parent ec6130e594
commit 2638e8eea4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 15 additions and 15 deletions

View File

@ -216,7 +216,7 @@ jobs:
- name: Download Github API
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
- name: Upload Github API to Release
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()

View File

@ -216,7 +216,7 @@ jobs:
- name: Download Github API
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
- name: Upload Github API to Release
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()

View File

@ -216,7 +216,7 @@ jobs:
- name: Download Github API
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
- name: Upload Github API to Release
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()

View File

@ -215,7 +215,7 @@ jobs:
- name: Download Github API
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
- name: Upload Github API to Release
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()

View File

@ -216,7 +216,7 @@ jobs:
- name: Download Github API
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
- name: Upload Github API to Release
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()

View File

@ -216,7 +216,7 @@ jobs:
- name: Download Github API
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
- name: Upload Github API to Release
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()

View File

@ -216,7 +216,7 @@ jobs:
- name: Download Github API
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
- name: Upload Github API to Release
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()

View File

@ -216,7 +216,7 @@ jobs:
- name: Download Github API
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
- name: Upload Github API to Release
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()

View File

@ -30,7 +30,7 @@ jobs:
- name: Download Github Release API
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
- name: Upload API to Github Release
uses: svenstaro/upload-release-action@v2

View File

@ -220,7 +220,7 @@ jobs:
- name: Download Github Release API
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
SP_UEFI_IMG_GZ=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}

View File

@ -281,7 +281,7 @@ jobs:
- name: Download Github Release API
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
SP_UEFI_IMG_GZ=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}

View File

@ -272,7 +272,7 @@ jobs:
- name: Download Github Release API
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
SP_UEFI_IMG_GZ=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}

View File

@ -268,7 +268,7 @@ jobs:
- name: Download Github Release API
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
SP_UEFI_IMG_GZ=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}

View File

@ -264,7 +264,7 @@ jobs:
- name: Download Github Release API
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
SP_UEFI_IMG_GZ=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}

View File

@ -256,7 +256,7 @@ jobs:
- name: Download Github Release API
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
run: |
wget https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
wget --tries=5 --wait=5 https://api.github.com/repos/${{github.repository}}/releases/tags/AutoUpdate -O API
SP_UEFI_IMG_GZ=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}