aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/action.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-15 19:51:15 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-15 19:51:15 +0300
commit4f96f9fecb8c952fa32ff791b0a77d93d5191bb4 (patch)
treeb6b53d62e11d5f650ab2a346d941636fb24759e6 /action.yml
parentREADME: update (diff)
downloadsetup-cygwin-4f96f9fecb8c952fa32ff791b0a77d93d5191bb4.tar.gz
setup-cygwin-4f96f9fecb8c952fa32ff791b0a77d93d5191bb4.zip
choco scripting best practicesv3.0.0
Diffstat (limited to '')
-rw-r--r--action.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/action.yml b/action.yml
index fc5ecc4..7779fd1 100644
--- a/action.yml
+++ b/action.yml
@@ -53,15 +53,15 @@ runs:
$choco = Locate-Choco
$choco_params = @(
- 'install',
+ 'upgrade',
+ 'cygwin',
'-y',
'--no-progress',
- '--params', "/InstallDir:$install_dir"
+ "--package-parameters='/InstallDir:$install_dir'"
)
if (!$x64) {
$choco_params += '--x86'
}
- $choco_params += 'cygwin'
# Assuming that Cygwin is not installed when this is run.
& $choco $choco_params
@@ -71,7 +71,7 @@ runs:
$pkg_list = $packages.Split(' ', [System.StringSplitOptions]::RemoveEmptyEntries)
if ($pkg_list.Count -gt 0) {
- & $choco install -y --no-progress --source=cygwin $pkg_list
+ & $choco install $pkg_list -y --no-progress --source=cygwin
}
shell: pwsh