Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Release workflow: fix the line break pattern

KnifeLemon7a51f4a03492
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index dfb81dc9..c72edec0 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -77,8 +77,7 @@ jobs:
$changelog = Get-Content CHANGELOG.md -Raw -Encoding utf8
if ($changelog -match "(?ms)^## $([regex]::Escape($version))[ \t]*\r?\n(.*?)(?=^## |\z)") {
# One line per list item: GitHub shows the line breaks of the 120-column file in release notes.
- $changes = $Matches[1].Trim() -replace ' ?
- (?=\S)', ' '
+ $changes = $Matches[1].Trim() -replace '\r?\n (?=\S)', ' '
}
if (-not $changes) { Write-Warning "CHANGELOG.md has no section for $version" }
$notes = if ($changes) { "$policy`n`n$changes" } else { $policy }