Skip to content

Commit

Permalink
Update file filter for local YAML files in Update-WingetPackage function
Browse files Browse the repository at this point in the history
  • Loading branch information
Utesgui committed Nov 26, 2024
1 parent b150d73 commit 5f8c5e0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ function Update-WingetPackage {
}

if ($releaseNotes) {
$localFiles = Get-ChildItem -Path $ManifestOutPath -Filter "*.local.yml"
write-Host "Try adding release notes to the manifest in $ManifestOutPath"
$localFiles = Get-ChildItem -Path $ManifestOutPath -Filter "*.local.*.yaml"
foreach ($file in $localFiles) {
Add-Content -Path $file.FullName -Value "`n`n$releaseNotes"
$newFile = get-content -path $file.FullName
Expand Down

0 comments on commit 5f8c5e0

Please sign in to comment.