You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge the latest Library.Template changes into this repo.\n\nResolved merge conflicts by keeping the repo-specific README, updating the Microsoft.Testing.Platform version while preserving repo-specific package settings, retaining the Microsoft.Build.Traversal SDK entry while taking the newer .NET SDK version, and re-deleting Expand-Template.ps1.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Write-Error "No successful builds found for ${{ github.ref }}."
49
-
} elseif ($releases.length -gt 1) {
50
-
Write-Warning "More than one successful run found for ${{ github.ref }}. Artifacts from the most recent successful run will ship."
51
-
}
53
+
} else {
54
+
if ($preferredReleases.length -gt 0) {
55
+
$selectedReleases = $preferredReleases
56
+
$multipleRunsWarning = "More than one successful run found for ${{ github.ref }}. Preferring the most recent push build from a public-release branch."
57
+
} else {
58
+
$selectedReleases = $releases
59
+
$multipleRunsWarning = "More than one successful run found for ${{ github.ref }} and none were from a public-release branch. Artifacts from the most recent successful run will ship."
if ($packageDir) { $packageDir=$packageDir.FullName }
71
+
}
72
+
73
+
if ($packageDir-and (Test-Path$packageDir)) {
74
+
Write-Output$packageDir
75
+
} else {
76
+
throw"Package directory not found after download. PackageId='$PackageId'; Version='$Version'; OutputDirectory='$OutputDirectory'; PackageRoot='$packageRoot'."
0 commit comments