Skip to content

Commit 0882521

Browse files
committed
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: actions/upload-artifact#480
1 parent 0654298 commit 0882521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
- name: Upload digest
136136
uses: actions/upload-artifact@v4
137137
with:
138-
name: digests-${{ env.PLATFORM_PAIR }}
138+
name: digests-${{ env.PLATFORM_PAIR }}-${{ strategy.job-index }}
139139
path: /tmp/digests/*
140140
if-no-files-found: error
141141
retention-days: 1

0 commit comments

Comments
 (0)