Skip to content

Commit ce5d30b

Browse files
committed
Minor change
1 parent cb4536e commit ce5d30b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/winget.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ jobs:
109109
$manifestPath, $packageVersion, $versionOperation = ./winget/create-manifest.ps1 ` -PackageIdentifier $env:WINGETPKGS_ID -ReleaseData $releaseData -ManifestsPath tmp/winget-pkgs/manifests
110110
Write-Host "Manifest created at: $manifestPath"
111111
Get-ChildItem -LiteralPath $manifestPath -Recurse -File | ForEach-Object {
112-
Write-Host "::group::$($_.FullName)"
113-
Get-Content -LiteralPath $_.FullName | Write-Host
112+
Write-Host "::group::$($_.Name)"
113+
Get-Content -LiteralPath $_.FullName -Raw | Write-Host
114114
Write-Host '::endgroup::'
115115
}
116116
"manifest-path=$manifestPath" | Add-Content -Path $env:GITHUB_OUTPUT -Encoding utf8

winget/create-manifest.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ function Get-ReleaseNotes {
2020
)
2121
$body = $ReleaseData.body.Trim()
2222
$body = ($body -replace '\r\n',"`n") -replace '\r',"`n"
23-
$body = $body -replace '(?ms)\s*<!--\s*virustotal\s*-->.*?<!--\s*/virustotal\s*-->\s*',"`n"
23+
$body = $body -replace '(?ms)\s*<!--\s*virustotal\s*-->.*?<!--\s*/virustotal\s*-->\s*',"`n`n"
24+
$body = $body.TrimEnd() + "`n"
2425

2526
return $body -replace '\n',[environment]::NewLine
2627
}

0 commit comments

Comments
 (0)