Skip to content

Commit daea7e2

Browse files
Do Not Generate Dashboard for Manual Regen Preview Pipeline (#11778)
The generation of the dashboard adds unnecessary time to the regen process, also it is flaky since it has to queue npm. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
1 parent a0b0ee0 commit daea7e2

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,10 +674,13 @@ try {
674674
}
675675
}
676676

677-
# Regenerate the emitter version dashboard
678-
Write-Host "Regenerating emitter version dashboard..."
679-
$dashboardScript = Join-Path $tempDir "doc/GeneratorVersions/Emitter_Version_Dashboard.ps1"
680-
& $dashboardScript -RepoRoot $tempDir
677+
if ($BuildReason -eq 'Manual') {
678+
Write-Host "Skipping emitter version dashboard regeneration for manual run."
679+
} else {
680+
Write-Host "Regenerating emitter version dashboard..."
681+
$dashboardScript = Join-Path $tempDir "doc/GeneratorVersions/Emitter_Version_Dashboard.ps1"
682+
& $dashboardScript -RepoRoot $tempDir
683+
}
681684

682685
# For manual runs, fail the pipeline if any step reported a failure instead of
683686
# opening a pull request that could give reviewers a false positive.

0 commit comments

Comments
 (0)