Skip to content

Commit f6ee27f

Browse files
committed
param() is not supported in windows powershell in GHA
1 parent b7fd486 commit f6ee27f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install-quarto/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ runs:
6161
then
6262
powershell -File $GITHUB_ACTION_PATH/install-quarto-windows.ps1
6363
else
64-
powershell -File $GITHUB_ACTION_PATH/install-quarto-windows.ps1 -version ${{ inputs.version }}
64+
powershell -File $GITHUB_ACTION_PATH/install-quarto-windows.ps1 ${{ inputs.version }}
6565
fi
6666
;;
6767
*)

install-quarto/install-quarto-windows.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
1818
Join-Path (Resolve-Path ~).Path "scoop\shims" >> $Env:GITHUB_PATH
1919

20-
param ($version)
20+
$version=$args[0]
2121
scoop bucket add r-bucket https://github.com/cderv/r-bucket.git
2222
if ([string]::IsNullOrEmpty($version)) {
2323
scoop install quarto

0 commit comments

Comments
 (0)