mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Enumerate over all signed zip packages
This commit is contained in:
@@ -234,18 +234,20 @@ jobs:
|
||||
- pwsh: |
|
||||
$signedPkg = Get-ChildItem -Path $(Pipeline.Workspace) -Filter "*osx*.zip" -File
|
||||
|
||||
Write-Verbose -Verbose "Signed package zip: $signedPkg"
|
||||
$signedPkg | ForEach-Object {
|
||||
Write-Verbose -Verbose "Signed package zip: $_"
|
||||
|
||||
if (-not (Test-Path $signedPkg)) {
|
||||
throw "Package not found: $signedPkg"
|
||||
if (-not (Test-Path $_)) {
|
||||
throw "Package not found: $_"
|
||||
}
|
||||
|
||||
if (-not (Test-Path $env:ob_outputDirectory)) {
|
||||
$null = New-Item -Path $env:ob_outputDirectory -ItemType Directory
|
||||
}
|
||||
|
||||
Expand-Archive -Path $_ -DestinationPath $env:ob_outputDirectory -Verbose
|
||||
}
|
||||
|
||||
if (-not (Test-Path $env:ob_outputDirectory)) {
|
||||
$null = New-Item -Path $env:ob_outputDirectory -ItemType Directory
|
||||
}
|
||||
|
||||
Expand-Archive -Path $signedPkg -DestinationPath $env:ob_outputDirectory -Verbose
|
||||
|
||||
Write-Verbose -Verbose "Expanded pkg file:"
|
||||
Get-ChildItem -Path $env:ob_outputDirectory | Write-Verbose -Verbose
|
||||
displayName: Expand signed file
|
||||
|
||||
Reference in New Issue
Block a user