upload-release-action icon indicating copy to clipboard operation
upload-release-action copied to clipboard

Couldn't create release (Error: Validation Failed)

Open macie opened this issue 8 months ago • 0 comments

Once I've got: Error: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"} with matrix strategy (source). I resolved it by rerunning CI job.

I assume that Validation Failed class errors comes directly from GitHub API in form of response with status 422 (in my case from releases endpoint). And I think that this is a race caused by multiple uploading in parallel.

I don't know how to reproduce it, but I think it is possible to ignore 422 responses with already_exists code from any create requests (error messages are standarized).

macie avatar Nov 01 '23 09:11 macie