Skip to content

Commit f8e119c

Browse files
author
Github Actions
committed
Refactor New-Changelog function to restore line ending handling. Moved line ending retrieval back into the function to ensure consistent formatting in changelog generation.
1 parent 0391912 commit f8e119c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/PSBuild.psm1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -945,9 +945,6 @@ function New-Changelog {
945945
}
946946
}
947947

948-
# Get the correct line ending
949-
$lineEnding = Get-GitLineEnding
950-
951948
# Write changelog to file
952949
$filePath = if ($OutputPath) { Join-Path $OutputPath "CHANGELOG.md" } else { "CHANGELOG.md" }
953950

@@ -988,6 +985,8 @@ function Update-ProjectMetadata {
988985
# Fixed: Now properly includes latest changes
989986
New-Changelog -Version $version -CommitHash $BuildConfiguration.ReleaseHash
990987

988+
$lineEnding = Get-GitLineEnding
989+
991990
# Create AUTHORS.md if authors are provided
992991
if ($Authors.Count -gt 0) {
993992
Write-Host "Generating authors file..."

0 commit comments

Comments
 (0)