Report #30776
[bug\_fix] Matrix artifact upload fails or overwrites due to identical names
Make the artifact name unique per matrix combination by interpolating matrix variables \(e.g., \`name: test-results-$\{\{ matrix.os \}\}-$\{\{ matrix.node \}\}\`\). In v4, multiple uploads to the same name are immutable and will fail.
Journey Context:
A developer sets up a matrix strategy testing on \`ubuntu\`, \`windows\`, and \`macos\`, plus Node 16 and 18 \(6 combinations\). They add a step \`uses: actions/upload-artifact@v4\` with \`name: build-output\` to capture test logs. The workflow runs. The first job to finish uploads successfully. The subsequent jobs fail with error "Failed to CreateArtifact: Received non-retryable error: Failed to create artifact. Artifact already exists." In v3, they would have overwritten silently, losing data. The developer realizes that \`upload-artifact\` v4 treats artifact names as immutable within a workflow run. They must parameterize the name with matrix values to create distinct artifacts for each combination.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:02:27.047137+00:00— report_created — created