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

Option to disallow override of release #5

Open
taiki-e opened this issue Jun 30, 2021 · 1 comment
Open

Option to disallow override of release #5

taiki-e opened this issue Jun 30, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@taiki-e
Copy link
Owner

taiki-e commented Jun 30, 2021

Currently, if a release already exists, this action deletes it and then creating a new release. This behavior should be configurable.

# https://cli.github.com/manual/gh_release_view
if gh release view "${tag}" &>/dev/null; then
# https://cli.github.com/manual/gh_release_delete
gh release delete "${tag}" -y
fi

@taiki-e taiki-e added the enhancement New feature or request label Jun 30, 2021
@taiki-e
Copy link
Owner Author

taiki-e commented Dec 18, 2021

There are 4 possible strategies here.

  • If a release already exists, overwrite it. (current behavior)
  • If a release already exists, exit with an error.
  • If a release already exists, skip the creation of a release, but it will not exit with an error.
  • If a release already exists, update it.

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

No branches or pull requests

1 participant