question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error 422: Validation Failed: `{"resource":"Release","code":"already_exists","field":"tag_name"}`

See original GitHub issue

Is 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:closed
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ncipollocommented, Oct 27, 2022

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.

0reactions
ncipollocommented, Nov 11, 2022

I added a skipIfReleaseExists input which you can set to true. This will cause the action to bail if the release already exists.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found