File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6868 GH_TOKEN : ${{ github.token }}
6969 run : |
7070 New-Item -ItemType Directory -Path tools -Force | Out-Null
71- gh release download --repo windowsadmins/cimian-pkg --pattern "cimipkg.exe" --dir tools
71+ $downloaded = $false
72+ try {
73+ gh release download --repo windowsadmins/cimian-pkg --pattern "cimipkg-win-x64.zip" --dir tools 2>$null
74+ if (Test-Path tools/cimipkg-win-x64.zip) {
75+ Expand-Archive -Path tools/cimipkg-win-x64.zip -DestinationPath tools -Force
76+ if (Test-Path tools/cimipkg.exe) { $downloaded = $true }
77+ }
78+ } catch {}
79+ if (-not $downloaded) {
80+ gh release download --repo windowsadmins/cimian-pkg --pattern "cimipkg.exe" --dir tools
81+ }
82+ if (-not (Test-Path tools/cimipkg.exe)) { throw "cimipkg download failed" }
7283 Write-Host "Downloaded: $(Get-Item tools/cimipkg.exe | Select-Object -ExpandProperty Length) bytes"
7384
7485 - name : Build MSI packages
You can’t perform that action at this time.
0 commit comments