From 2e3115ef040e6f8dec8b9dcdbf15490e9c016338 Mon Sep 17 00:00:00 2001 From: cytopia Date: Fri, 25 Mar 2022 19:28:52 +0100 Subject: [PATCH] Use retry for artifact download --- .github/workflows/zzz-reuse-build.yml | 24 ++++++++++---- .github/workflows/zzz-reuse-deploy-images.yml | 32 ++++++++++++++----- 2 files changed, 42 insertions(+), 14 deletions(-) diff --git a/.github/workflows/zzz-reuse-build.yml b/.github/workflows/zzz-reuse-build.yml index c2d4b40..bbfc14f 100644 --- a/.github/workflows/zzz-reuse-build.yml +++ b/.github/workflows/zzz-reuse-build.yml @@ -103,9 +103,13 @@ jobs: ### Download and import base ### - name: "[Artifact Load] Download base" - uses: actions/download-artifact@v3 + uses: Wandalen/wretry.action@v1.0.11 with: - name: ${{ steps.set-artifact-name.outputs.base }} + action: actions/download-artifact@v3 + with: | + name: ${{ steps.set-artifact-name.outputs.base }} + attempt_limit: 20 + attempt_delay: 10000 if: ${{ inputs.flavour == 'mods' }} - name: "[Artifact Load] Import base" @@ -119,9 +123,13 @@ jobs: ### Download and import mods ### - name: "[Artifact Load] Download mods" - uses: actions/download-artifact@v3 + uses: Wandalen/wretry.action@v1.0.11 with: - name: ${{ steps.set-artifact-name.outputs.mods }} + action: actions/download-artifact@v3 + with: | + name: ${{ steps.set-artifact-name.outputs.mods }} + attempt_limit: 20 + attempt_delay: 10000 if: ${{ inputs.flavour == 'prod' }} - name: "[Artifact Load] Import mods" @@ -135,9 +143,13 @@ jobs: ### Download and import prod ### - name: "[Artifact Load] Download prod" - uses: actions/download-artifact@v3 + uses: Wandalen/wretry.action@v1.0.11 with: - name: ${{ steps.set-artifact-name.outputs.prod }} + action: actions/download-artifact@v3 + with: | + name: ${{ steps.set-artifact-name.outputs.prod }} + attempt_limit: 20 + attempt_delay: 10000 if: ${{ inputs.flavour == 'work' }} - name: "[Artifact Load] Import prod" diff --git a/.github/workflows/zzz-reuse-deploy-images.yml b/.github/workflows/zzz-reuse-deploy-images.yml index dd389c9..0737069 100644 --- a/.github/workflows/zzz-reuse-deploy-images.yml +++ b/.github/workflows/zzz-reuse-deploy-images.yml @@ -99,9 +99,13 @@ jobs: ### Download and import base ### - name: "[Artifact Load] Download base" - uses: actions/download-artifact@v3 + uses: Wandalen/wretry.action@v1.0.11 with: - name: ${{ steps.set-artifact-name.outputs.base }} + action: actions/download-artifact@v3 + with: | + name: ${{ steps.set-artifact-name.outputs.base }} + attempt_limit: 20 + attempt_delay: 10000 - name: "[Artifact Load] Import base" uses: cytopia/shell-command-retry-action@v0.1.2 @@ -114,9 +118,13 @@ jobs: ### Download and import mods ### - name: "[Artifact Load] Download mods" - uses: actions/download-artifact@v3 + uses: Wandalen/wretry.action@v1.0.11 with: - name: ${{ steps.set-artifact-name.outputs.mods }} + action: actions/download-artifact@v3 + with: | + name: ${{ steps.set-artifact-name.outputs.mods }} + attempt_limit: 20 + attempt_delay: 10000 - name: "[Artifact Load] Import mods" uses: cytopia/shell-command-retry-action@v0.1.2 @@ -129,9 +137,13 @@ jobs: ### Download and import prod ### - name: "[Artifact Load] Download prod" - uses: actions/download-artifact@v3 + uses: Wandalen/wretry.action@v1.0.11 with: - name: ${{ steps.set-artifact-name.outputs.prod }} + action: actions/download-artifact@v3 + with: | + name: ${{ steps.set-artifact-name.outputs.prod }} + attempt_limit: 20 + attempt_delay: 10000 - name: "[Artifact Load] Import prod" uses: cytopia/shell-command-retry-action@v0.1.2 @@ -144,9 +156,13 @@ jobs: ### Download and import prod ### - name: "[Artifact Load] Download work" - uses: actions/download-artifact@v3 + uses: Wandalen/wretry.action@v1.0.11 with: - name: ${{ steps.set-artifact-name.outputs.work }} + action: actions/download-artifact@v3 + with: | + name: ${{ steps.set-artifact-name.outputs.work }} + attempt_limit: 20 + attempt_delay: 10000 - name: "[Artifact Load] Import work" uses: cytopia/shell-command-retry-action@v0.1.2