support for asset retries, and deleting existing releases

This commit is contained in:
Nathan James 2021-11-10 14:38:16 +02:00
parent 0465cdad11
commit 0edcedf52f
8 changed files with 202 additions and 56 deletions

View file

@ -180,6 +180,9 @@ The following are optional as `step.with` keys
| `token` | String | Secret GitHub Personal Access Token. Defaults to `${{ github.token }}` |
| `discussion_category_name` | String | If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see ["Managing categories for discussions in your repository."](https://docs.github.com/en/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository) |
| `generate_release_notes` | Boolean | Whether to automatically generate the name and body for this release. If name is specified, the specified name will be used; otherwise, a name will be automatically generated. If body is specified, the body will be pre-pended to the automatically generated notes. |
| `retries` | Number | The amount of times you want to try to upload a release asset. This will default to 0 which means do not retry. |
| `retry_interval` | Number | The interval in millisecond between failed asset upload attempts. |
| `delete_on_existing` | Boolean | Whether or not to delete an existing release entirely when running this action. |
💡 When providing a `body` and `body_path` at the same time, `body_path` will be
attempted first, then falling back on `body` if the path can not be read from.