From 08825216721e0df68e9f744069c294a39023ed61 Mon Sep 17 00:00:00 2001 From: ndn Date: Wed, 16 Oct 2024 17:49:22 +0200 Subject: [PATCH] Avoid name colision when uploading artifact We're seeing the following error when building multi-platform images during upload artifact step: """ Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run """ This PR fixes the issue by adding a built-in matrix enumeration to the artifact name. Context: https://github.com/actions/upload-artifact/issues/480 --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 68a6673..c29803d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -135,7 +135,7 @@ jobs: - name: Upload digest uses: actions/upload-artifact@v4 with: - name: digests-${{ env.PLATFORM_PAIR }} + name: digests-${{ env.PLATFORM_PAIR }}-${{ strategy.job-index }} path: /tmp/digests/* if-no-files-found: error retention-days: 1