<p>You'll get this error,</p>
<blockquote>
<p>Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run</p>
</blockquote>
<p>Your only options are to set <a href="https://github.com/actions/upload-artifact?tab=readme-ov-file#overwriting-an-artifact" rel="nofollow noreferrer"><code>overwrite: true</code></a> in <a href="https://github.com/actions/upload-artifact" rel="nofollow noreferrer"><code>@actions/upload-artifact</code></a> or to get the fatal error above.</p>

CC BY-SA 4.0
2024-12-06T19:19:55.150Z
2024-12-06T19:19:55.150Z
Evan Carroll
<p>I have a matrix in a GitHub action. What happens if the the matrix uses <code>upload-artifacts</code> and specifies an artifact-name with a literal, such that other jobs in the matrix have the same artifact name?</p>

<github-actions>
What happens in GitHub if artifact names conflicts?
Evan Carroll
# What happens in GitHub if artifact names conflicts?

(Asked by: username_0 on 2024-12-06)

I have a matrix in a GitHub action. What happens if the the matrix uses `upload-artifacts` and specifies an artifact-name with a literal, such that other jobs in the matrix have the same artifact name?

**Tags:** github-actions


---

## 1 answers

### Answer by username_0 on 2024-12-06. Score: 0

You'll get this error,

> Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run

Your only options are to set [`overwrite: true`](https://github.com/actions/upload-artifact?tab=readme-ov-file#overwriting-an-artifact) in [`@actions/upload-artifact`](https://github.com/actions/upload-artifact) or to get the fatal error above.


---

