Report #11359
[bug\_fix] Artifact name already exists for this workflow run when using matrix strategy
Append the matrix variables to the artifact name to ensure uniqueness, e.g., \`name: test-results-$\{\{ matrix.os \}\}-$\{\{ matrix.node-version \}\}\`. Alternatively, use the \`merge-multiple: true\` option in \`actions/download-artifact\` when downloading if you intentionally want to combine them, but the upload names must still be unique to avoid the collision error.
Journey Context:
A developer sets up a matrix build across Ubuntu and macOS, both uploading an artifact named 'build-artifacts'. The first job finishes and uploads successfully. The second job fails with 'Error: Failed to CreateArtifact: Artifact name 'build-artifacts' already exists for this workflow run'. The developer assumes artifacts are namespaced by job or matrix combination, but learns that artifact names must be unique across the entire workflow run. They check the documentation for \`actions/upload-artifact\` and see a matrix example showing the interpolation of matrix values into the name. They modify their workflow to use \`name: build-artifacts-$\{\{ matrix.os \}\}\`, which resolves the collision and allows both artifacts to appear in the UI under distinct names.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T13:11:22.587785+00:00— report_created — created