-
Notifications
You must be signed in to change notification settings - Fork 188
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
Published release became draft after update #185
Comments
I'm not sure I completely understand your use case - why set draft to true if you want to have the action directly publish your release? |
I'd like the following behaviour:
|
I just had a similar problem, I had a a full release, with lots of downloads, and I inadvertently triggered the publish action, (which normally starts as draft), so my release was turned to draft. It would be nice to have a solution to avoid setting the draft flag on existing full releases. |
Got it, thanks for providing more context. I'll add an option to avoid applying the draft flag if the release exists. |
In my opinion the default should be set to prevent damaging existing releases. |
I'm not sure that I agree, a couple of reasons:
While this might not make sense for your workflow, I'd also argue there might be people out there who always want to revert it to a draft so they can review changes before making public. |
I don't know other folks workflows, but, as far as I was able to understand the GitHub workflow, there is no option in the web interface to change a final release back to draft, and this is for good reasons, since release artefacts, once published, are expected to remain available permanently. At least this is the usual assumption, that people can use links to download the artefacts forever. In my case, inadvertently starting the action made all the artefacts invisible, and people using the STM32 Arduino IDE were no longer able to download the Arm toolchain. Thus, in my opinion, the possibility to disable a final release is a bug, not a feature. |
The behavior of the action is consistent with the GitHub API, if you provide the In any case, when I get a chance I will add this option. If you have a ton of repos and don't want to manually set the new property all the time you can fork the action and change the default. |
No problem, once you add this option I can update the repos, I use a template and I can easily re-generate the configurations. Just make sure that the documentation warns the users on the danger of re-enabling the |
Can you help me understand how to configure the action to prevent the release from being turned into a draft once it was already marked as release? |
Still working on getting the release cut haha. When it's out you will just need to set |
Okay, this has been released now. You can either use |
Great, thank you! |
Describe the bug
Published release became draft after update.
To Reproduce
allowUpdates: true
Expected behavior
It would be great to have option such
changeDraftDuringUpdate
to be able to keep release published during update.The text was updated successfully, but these errors were encountered: