kuiperzone / PupNet-Deploy

PupNet Deploy is a cross-platform deployment utility which packages your .NET project as a ready-to-ship installation file in a single step.
GNU Affero General Public License v3.0
183 stars 6 forks source link

Automatically set `-y` in CI #24

Closed erri120 closed 11 months ago

erri120 commented 1 year ago

CI's don't have console input, as such it would be nice to automatically select -y when running in CI. You can detect CI with the environment variable CI, which will be set to true.

If you don't manually set -y in CI, you'll get this error:

Continue? [N/y]: 
FAILED
Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read.
kuiperzone commented 1 year ago

Will add in next version.

kuiperzone commented 11 months ago

Will be version 1.7 shortly.