-
-
Notifications
You must be signed in to change notification settings - Fork 590
Open
Description
Expected Behavior
When creating a release in a repository the user is not permitted to create new TAGs in the workflow should optionally, as set by user parameter, remove the draft release as it is not allowed to publish said release.
Current Behavior
When creating a release in a repository the user is not permitted to create new TAGs in the workflow will create a new release as draft but not be able to finalize it. Resulting is an orphaned draft release which cannot be published nor is shown in the releases overview.
Possible Solution
the workflow should optionally, as set by user parameter, remove the draft release as it is not allowed to publish said release.
Steps to Reproduce
- Create a ruleset which disallows creation of new TAGs
- Create a workflow to publish a release
- Step will fail without clear error message
- A release will have been created in a draft state
- Remove ruleset which disallows creation of new TAGs
- Remove draft release
- Rerun workflow
- Release is now successfully published
Metadata
Metadata
Assignees
Labels
No labels