From d16e36d5f8a7eb00aa6627c1a536d94dfc4a913d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 15 Jan 2021 19:58:01 +0300 Subject: choco scripting best practices --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'action.yml') diff --git a/action.yml b/action.yml index 38b20eb..e8dd66b 100644 --- a/action.yml +++ b/action.yml @@ -51,10 +51,10 @@ runs: sudo apt-get install -yq --no-install-recommends $Packages } elseif ($script:cygwin_host) { $choco = Locate-Choco - & $choco install -y --no-progress --source=cygwin $Packages + & $choco install $Packages -y --no-progress --source=cygwin } elseif ($script:windows_host) { $choco = Locate-Choco - & $choco install -y --no-progress $Packages + & $choco upgrade $Packages -y --no-progress --allow-downgrade } else { throw "Sorry, installing packages is unsupported on $script:os" } -- cgit v1.2.3