ncipollo / release-action

An action which manages a github release

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Does this update/overwrite the tag if it exists?

Minionguyjpro opened this issue · comments

Hello there, I have a question: does this update/overwrite the tag if it exists? If not, I would love to see a function to do so.

That is not the intent of this action. You can achieve that with a simple run step.

That is not the intent of this action. You can achieve that with a simple run step.

Could you give me an example? I need to make sure a tag is only deleted when a draft release exists. It may sound a bit complicated, but can't seem to find anything about it..., to make sure that public releases make sure the tag for that release is not deleted, and is deleted when it is a draft.

A release is associated with a tag, even if it's a draft so not sure I understand what you are after. If you want to delete the tag of the draft is closed you could google around for GitHub workflow triggers for release state changes, then delete the tag via a script when that happens.

@Minionguyjpro Take a look at this https://github.com/marketplace/actions/delete-tag-and-release . Delete the tag before the release and it will be created again. And you can even delete the release itself

@Minionguyjpro Take a look at this https://github.com/marketplace/actions/delete-tag-and-release . Delete the tag before the release and it will be created again. And you can even delete the release itself

Thank you for sharing!