mirror of
https://github.com/xopenwrt/X-OpenWrt-New.git
synced 2026-09-28 15:54:41 +00:00
Add auto retry when wget fail
This commit is contained in:
@@ -216,7 +216,7 @@ jobs:
|
|||||||
- name: Download Github API
|
- name: Download Github API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
run: |
|
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
|
- name: Upload Github API to Release
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ jobs:
|
|||||||
- name: Download Github API
|
- name: Download Github API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
run: |
|
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
|
- name: Upload Github API to Release
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ jobs:
|
|||||||
- name: Download Github API
|
- name: Download Github API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
run: |
|
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
|
- name: Upload Github API to Release
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ jobs:
|
|||||||
- name: Download Github API
|
- name: Download Github API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
run: |
|
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
|
- name: Upload Github API to Release
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ jobs:
|
|||||||
- name: Download Github API
|
- name: Download Github API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
run: |
|
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
|
- name: Upload Github API to Release
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ jobs:
|
|||||||
- name: Download Github API
|
- name: Download Github API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
run: |
|
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
|
- name: Upload Github API to Release
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ jobs:
|
|||||||
- name: Download Github API
|
- name: Download Github API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
run: |
|
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
|
- name: Upload Github API to Release
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ jobs:
|
|||||||
- name: Download Github API
|
- name: Download Github API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
run: |
|
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
|
- name: Upload Github API to Release
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Compile_Result == 'true' && !cancelled()
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Download Github Release API
|
- name: Download Github Release API
|
||||||
run: |
|
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
|
- name: Upload API to Github Release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ jobs:
|
|||||||
- name: Download Github Release API
|
- name: Download Github Release API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
||||||
run: |
|
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=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
|
||||||
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
||||||
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ jobs:
|
|||||||
- name: Download Github Release API
|
- name: Download Github Release API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
||||||
run: |
|
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=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
|
||||||
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
||||||
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ jobs:
|
|||||||
- name: Download Github Release API
|
- name: Download Github Release API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
||||||
run: |
|
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=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
|
||||||
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
||||||
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ jobs:
|
|||||||
- name: Download Github Release API
|
- name: Download Github Release API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
||||||
run: |
|
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=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
|
||||||
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
||||||
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ jobs:
|
|||||||
- name: Download Github Release API
|
- name: Download Github Release API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
||||||
run: |
|
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=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
|
||||||
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
||||||
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ jobs:
|
|||||||
- name: Download Github Release API
|
- name: Download Github Release API
|
||||||
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
if: env.UPLOAD_RELEASES == 'true' && env.Result == 'true' && !cancelled()
|
||||||
run: |
|
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=openwrt/bin/Firmware/AutoBuild-*-UEFI-*.img.gz
|
||||||
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
SP_UEFI_IMG_GZ=$(echo $SP_UEFI_IMG_GZ)
|
||||||
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
SP_UEFI_IMG_GZ=${SP_UEFI_IMG_GZ##*/}
|
||||||
|
|||||||
Reference in New Issue
Block a user