Answers: <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>
  
Answers: CC BY-SA 4.0
Answers: 2024-12-06T19:19:55.150Z
Answers: 2024-12-06T19:19:55.150Z
Answers: Evan Carroll
Body: <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>
  
Tags: <github-actions>
Title: What happens in GitHub if artifact names conflicts?
UserDisplayName: Evan Carroll
ThreadText: # 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.
  
  
  ---
  
  