softprops / action-gh-release

📦 :octocat: GitHub Action for creating GitHub Releases
MIT License
4.1k stars 450 forks source link

Add parameter "allow_update" to control reuse of existing tag_name #399

Open wkmyws opened 9 months ago

wkmyws commented 9 months ago

I noticed that when a tag_name already exists, this script reuses the existing tag_nameand updates the assets.

Can we add a parameter allow_update to determine whether it is allowed to reuse an existing tag_name? If allow_update is set to false and the tag_name already exists, an error should be thrown.

vitalykarasik commented 9 months ago

I'm curious if you have an idea what is happening here https://github.com/softprops/action-gh-release/issues/403. Thank you, Vitaly

koss110 commented 8 months ago

@wkmyws hope it helps: https://github.com/softprops/action-gh-release/issues/403#issuecomment-1909895544

sevensolutions commented 3 days ago

I also came across this which accidentially destroyed my old release. This should throw an error.