Skip to content

Commit

Permalink
Merge pull request #1908 from PathogenDavid/nuget-package-log-sort
Browse files Browse the repository at this point in the history
Fix some lists in the NuGet package comparison log not being sorted
  • Loading branch information
glopesdev authored Jul 13, 2024
2 parents b0343d8 + 7924517 commit 4c1f0cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/compare-nuget-packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,17 @@ def write_both(line: str = ''):
def list_missing_peers(heading: str, md_heading: str, packages: set[str]) -> bool:
if len(packages) == 0:
return False


sorted_packages = list(packages)
sorted_packages.sort()

print()
print(heading)
md.write_line(f"# {md_heading}")
md.write_line()
md.write_line(heading)
md.write_line()
for package in packages:
for package in sorted_packages:
print(f" {package}")
md.write_line(f"* {package}")
return True
Expand Down

0 comments on commit 4c1f0cc

Please sign in to comment.