aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-15 19:58:01 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-15 19:58:01 +0300
commitd16e36d5f8a7eb00aa6627c1a536d94dfc4a913d (patch)
tree216cdbf840b20bc18d3f28616c4498a94b146137
parentworkflows/test.yml: setup-cygwin v3 (diff)
downloadsetup-clang-d16e36d5f8a7eb00aa6627c1a536d94dfc4a913d.tar.gz
setup-clang-d16e36d5f8a7eb00aa6627c1a536d94dfc4a913d.zip
choco scripting best practices
Diffstat (limited to '')
-rw-r--r--action.yml4
1 files changed, 2 insertions, 2 deletions
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"
}