Error 422: Validation Failed: `{"resource":"Release","code":"already_exists","field":"tag_name"}`
See original GitHub issueIs your feature request related to a problem? Please describe. If the tag and release already exists the action fails. Is there a way to just ignore updating the release if the action fails? Here, is the configuration of my action:-
Run ncipollo/release-action@58ae73b360456532aafd58ee170c045abbeaee37
with:
allowUpdates: false
prerelease: false
artifactErrorsFailBuild: true
removeArtifacts: false
replacesArtifacts: false
token: ***
tag: <tag_name>
body: <body>
artifacts: <artifact_path>
Describe the solution you’d like We don’t want the action to fail the workflow but just omit overwriting the release.
Describe alternatives you’ve considered Considered skipping the action completely if the tag/release exists but cannot find any git command or any other suitable way to do it in github actions workflow since we want to publish the release the first time if it does not exists.
Additional context Add any other context or screenshots about the feature request here.
Issue Analytics
- State:
- Created a year ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
{"resource":"Release","code":"invalid","field ... - GitHub
Error : Error 422: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
Read more >How To Fix the HTTP 422 Error - Kinsta
Error 422 is an HTTP code that tells you that the server can't process your request, although it understands it. The full name...
Read more >Axios.post in React 422, Error: (Data Validation Failed.)
How about this ? const url = `https://applic.com/api/v1/todos?expand=createdBy`; const token = '12345'; add = (item) => { axios({ method: ...
Read more >HTTP error (422 - Unknown): Validation failed: Name has ...
Problem: Trying to register a host (which was possibly registered before) fails with error. I've tried cleaning up everything first: sudo ...
Read more >422 Unprocessable Entity - HTTP - MDN Web Docs
The HyperText Transfer Protocol (HTTP) 422 Unprocessable Entity response status code indicates that the server understands the content type ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It will create the tag only if it doesn’t exist. Either way that error is coming from github and indicating either the tag name is invalid or it already exists.
I added a
skipIfReleaseExistsinput which you can set to true. This will cause the action to bail if the release already exists.