Skip to content

Commit 8ffbbb6

Browse files
Copilotmkrueger
andcommitted
Fix packagesToPush escaping and add any-RID guard to package-unsigned validation
Co-authored-by: mkrueger <341098+mkrueger@users.noreply.github.com> Agent-Logs-Url: https://github.com/Azure/CosmosDBShell/sessions/0e5944c6-6775-4f22-af50-756cb505882f
1 parent 837c4bc commit 8ffbbb6

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/package-unsigned.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ jobs:
170170
exit 1
171171
}
172172
173+
$anyMatches = Get-ChildItem -Path (Join-Path $pkgDir 'CosmosDBShell.any.*.nupkg') -ErrorAction SilentlyContinue
174+
if ($anyMatches -and $anyMatches.Count -gt 0) {
175+
$names = $anyMatches | ForEach-Object { $_.Name } | Sort-Object
176+
Write-Error "Unexpected any-RID package(s) found: $($names -join ', ')"
177+
exit 1
178+
}
179+
173180
- name: Upload test results
174181
if: always()
175182
uses: actions/upload-artifact@v4

.pipelines/CosmosDB-Shell-Official.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ extends:
518518
eq('${{ parameters.publishNuget }}', 'true'))
519519
inputs:
520520
command: "push"
521-
packagesToPush: "$(Build.SourcesDirectory)\\out\\nupkg\\CosmosDBShell.$(CosmosDBShell_PackageVersion).nupkg"
521+
packagesToPush: "$(Build.SourcesDirectory)\out\nupkg\CosmosDBShell.$(CosmosDBShell_PackageVersion).nupkg"
522522
nuGetFeedType: "internal"
523523
publishVstsFeed: "CosmosDB/CosmosDBShell"
524524
allowPackageConflicts: true

0 commit comments

Comments
 (0)