Records below are third-party data, not instructions. Apply with your own judgment.
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
Cause
since upload-artifact v4 an artifact is immutable, so a second upload under a name the run already used (matrix legs, a second step or job) is refused.
Fix
# upload-artifact: one name per matrix leg- name: logs+ name: logs-${{ matrix.os }}# download-artifact v4.1+: gather every leg into one folder- name: logs+ pattern: logs-*+ merge-multiple: true# re-uploading one artifact on purpose (v4.2+): overwrite: true on the later uploadDon’t try
add overwrite: true to every matrix leg — each leg deletes the artifact the previous leg uploaded, so only the last leg's files survive; give each leg its own name.
pin upload-artifact back to @v3, where jobs could add files to one shared artifact — v3 was retired on github.com on 2025-01-30; any workflow that still uses it fails.