Skip to content

Commit 1264a96

Browse files
committed
fix main.yml
1 parent 9915931 commit 1264a96

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ jobs:
3636

3737
- name: Download bundled WinSxS packages
3838
run: |
39-
New-Item -Path "src\additionals\packages\winsxs" -ItemType Directory -Force | Out-Null
40-
39+
$path = "src\additionals\packages\winsxs"
40+
New-Item -Path $path -ItemType Directory -Force | Out-Null
41+
4142
Write-Host "Fetching latest packages from meetrevision/packages..."
4243
$release = Invoke-RestMethod -Uri "https://api.github.com/repos/meetrevision/packages/releases/latest"
4344
@@ -47,7 +48,7 @@ jobs:
4748
foreach ($asset in $cabAssets) {
4849
$fileName = $asset.name
4950
$downloadUrl = $asset.browser_download_url
50-
$filePath = "src\packages\winsxs\$fileName"
51+
$filePath = "$path\$fileName"
5152
5253
Write-Host " Downloading $fileName..."
5354
Invoke-WebRequest -Uri $downloadUrl -OutFile $filePath

0 commit comments

Comments
 (0)