Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add a new option: deleteExistingRelease #440

Open
hoggatt opened this issue Apr 15, 2024 · 3 comments
Open

[Feature Request] Add a new option: deleteExistingRelease #440

hoggatt opened this issue Apr 15, 2024 · 3 comments

Comments

@hoggatt
Copy link

hoggatt commented Apr 15, 2024

Is your feature request related to a problem? Please describe.

When using allowUpdates, the date in the release is not updated:
image
From this discussion.

Describe the solution you'd like

I understand that github does not update the date if you change the assets. This is understandable. However, it would be great if there was an additional option: deleteExistingRelease that allows this action to delete an existing release if one exists, before making the an updated version of the release. This would really improve this action in cases where people have nightly builds and wouldn't change any existing behavior.

Describe alternatives you've considered

The only alternative is to use a different action, which is not ideal since I believe this functionality fits well within the scope of this action given that the allowUpdates function is present.

@JakobAnarkyLabs
Copy link

JakobAnarkyLabs commented Apr 29, 2024

+ 1 on this

@dtcooper
Copy link

FYI: I use dev-drprasad/delete-tag-and-release in conjunction with ncipollo/release-action to achieve this.

@ReeganExE
Copy link

If readers managed to delete and re-create the release, simply run one-line gh-cli as it is already installed on VMs.

gh release delete your-release-name --cleanup-tag --yes --repo $GITHUB_REPOSITORY

Don't forget to add env GH_TOKEN: ${{ github.token }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants