Skip to content

Commit 6ed3375

Browse files
committed
CI: allow partial publish and list skipped specs
1 parent bb6d252 commit 6ed3375

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

scripts/Build-Publish.ps1

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ try {
9797
if ($missingDownloads.Count -gt 0) {
9898
if ($AllowPartial) {
9999
Write-Warning "Skipping $($missingDownloads.Count) specs with missing downloads (CDN links may be stale): $($missingDownloads -join ', ')"
100+
Write-Host 'Skipped specs (missing downloads):'
101+
foreach ($protocolId in $missingDownloads) {
102+
Write-Host " - $protocolId"
103+
}
100104
$catalog = $catalog | Where-Object { $downloadedProtocolIds.Contains($_.ProtocolId) }
101105
}
102106
else {
@@ -139,7 +143,16 @@ try {
139143

140144
$missingPublished = @($catalog | Where-Object { -not $publishedProtocolIds.Contains($_.ProtocolId) } | Select-Object -ExpandProperty ProtocolId -Unique | Sort-Object)
141145
if ($missingPublished.Count -gt 0) {
142-
throw "Missing converted output for $($missingPublished.Count) specs: $($missingPublished -join ', ')"
146+
if ($AllowPartial) {
147+
Write-Warning "Skipping $($missingPublished.Count) specs with missing converted output: $($missingPublished -join ', ')"
148+
Write-Host 'Skipped specs (missing converted output):'
149+
foreach ($protocolId in $missingPublished) {
150+
Write-Host " - $protocolId"
151+
}
152+
}
153+
else {
154+
throw "Missing converted output for $($missingPublished.Count) specs: $($missingPublished -join ', ')"
155+
}
143156
}
144157

145158
$legalSource = Join-Path (Join-Path $convPath '_legal') 'LEGAL.md'

0 commit comments

Comments
 (0)