Skip to content

Commit 53b122c

Browse files
committed
Formatting
1 parent cc1182f commit 53b122c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

eng/pipelines/templates/stages/archetype-rust-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ stages:
9797
$artifacts = Get-Content '$(Pipeline.Workspace)/drop/release-order.json' | ConvertFrom-Json
9898
9999
# Force $artifacts to be an array (PowerShell unrolls single-item arrays)
100-
if ($artifacts -isnot [Array]) {
100+
if ($artifacts -isnot [Array]) {
101101
$artifacts = @($artifacts)
102102
}
103103

eng/scripts/Pack-Crates.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,14 @@ try {
128128
$packageParams += "--no-verify"
129129
}
130130

131-
Write-Host "> cargo publish --locked --dry-run --allow-dirty $($packageParams -join ' ')"
132-
& cargo publish --locked --dry-run --allow-dirty @packageParams 2>&1 | Tee-Object -Variable packResult
131+
LogGroupStart "cargo publish --locked --dry-run --allow-dirty $($packageParams -join ' ')"
132+
Write-Host "cargo publish --locked --dry-run --allow-dirty $($packageParams -join ' ')"
133+
& cargo publish --locked --dry-run --allow-dirty @packageParams 2>&1 `
134+
| Tee-Object -Variable packResult `
135+
| ForEach-Object { Write-Host $_ -ForegroundColor Gray }
136+
LogGroupEnd
137+
138+
Write-Host "Finished packing crates"
133139
if ($LASTEXITCODE) {
134140
Write-Host "cargo publish failed with exit code $LASTEXITCODE"
135141
exit $LASTEXITCODE

0 commit comments

Comments
 (0)