aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--action.yml17
1 files changed, 10 insertions, 7 deletions
diff --git a/action.yml b/action.yml
index e463ffc..333e43f 100644
--- a/action.yml
+++ b/action.yml
@@ -26,16 +26,21 @@ runs:
steps:
- run: |
New-Variable os -Value ('${{ runner.os }}') -Option Constant
-
New-Variable windows_host -Value ($os -eq 'Windows') -Option Constant
- New-Variable x64 -Value ('${{ inputs.platform }}' -eq 'x64') -Option Constant
- New-Variable install_dir -Value '${{ inputs.install-dir }}' -Option Constant
- New-Variable packages -Value '${{ inputs.packages }}' -Option Constant
-
if (!$windows_host) {
throw "Sorry, installing Cygwin is unsupported on $os"
}
+ shell: pwsh
+
+ - run: |
+ echo 'CYGWIN=${{ inputs.env }}' >> $env:GITHUB_ENV
+ shell: pwsh
+
+ - run: |
+ New-Variable x64 -Value ('${{ inputs.platform }}' -eq 'x64') -Option Constant
+ New-Variable install_dir -Value '${{ inputs.install-dir }}' -Option Constant
+ New-Variable packages -Value '${{ inputs.packages }}' -Option Constant
function Locate-Choco {
$path = Get-Command 'choco' -ErrorAction SilentlyContinue
@@ -46,8 +51,6 @@ runs:
}
}
- echo 'CYGWIN=${{ inputs.env }}' >> $env:GITHUB_ENV
-
$choco = Locate-Choco
$choco_params = @(
'install',