actions / upload-artifact

MIT License
3.16k stars 708 forks source link

Retry on artifact already exists #548

Open yanksyoon opened 6 months ago

yanksyoon commented 6 months ago

Addresses #506.

Hello maintainers!

When running the upload-artifact workflow in parallel (workflow with matrices), the Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run is often encountered.

I've looked into this to address this issue, however, it seems that it is likely that it might be necessary to introduce new error classes upstream in actions/toolkit:artifact to properly address this issue.

This PR is a hacky patch to fix it, but any guidance or suggestion on how to approach the fix would be appreciated.

Thank you!