aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-15 19:57:48 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-15 19:57:48 +0300
commitd3a49b4d5a28659e27c27b6d24e7c728f9307874 (patch)
tree39a28a24d9049d0049e5ecbe3d1a18932c3fef6b
parentworkflows/test.yml: setup-cygwin v3 (diff)
downloadsetup-gcc-d3a49b4d5a28659e27c27b6d24e7c728f9307874.tar.gz
setup-gcc-d3a49b4d5a28659e27c27b6d24e7c728f9307874.zip
choco scripting best practices
-rw-r--r--action.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/action.yml b/action.yml
index c8a6242..4704db6 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"
}