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

How to replace existing release tag instead of add more files?

Open LazyGeniusMan opened this issue 3 years ago • 2 comments

Is it possible to replace files under release for existing release tag instead of adding more file ?

Currently if the tag is exists it will add more files to them, I prefer to delete the existing release and tag and then add a new one

btw I'm building workflow for releasing develop branch on commit, the tag is always dev/latest but the file name have date and short commit sha

LazyGeniusMan avatar Jan 28 '22 02:01 LazyGeniusMan

I can do this manually by running this command before this github action:

git fetch --tags
hub release delete <TAG>
git push --delete origin <TAG>

Would be nice if this can be done inside with, maybe something like replace_existing_tag: true (default to false)

LazyGeniusMan avatar Jan 28 '22 09:01 LazyGeniusMan

Sounds a bit as if https://github.com/softprops/action-gh-release/pull/188 would implement that.

sschuberth avatar Feb 14 '22 11:02 sschuberth