diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index e19b28c..70ee71d 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -636,7 +636,7 @@ jobs: $exists = git cat-file -e "main-branch:$configFile" 2>&1 if ($LASTEXITCODE -eq 0) { Write-Host " ✓ Copying $configFile from main branch" - git show "main-branch:$configFile" | Out-File -FilePath $configFile -Encoding UTF8 -NoNewline + git show "main-branch:$configFile" | Out-File -FilePath $configFile -Encoding UTF8NoBOM -NoNewline } else { Write-Host " ℹ️ $configFile not found in main branch, skipping" } @@ -651,7 +651,7 @@ jobs: Write-Host " ✓ Copying $file from main branch" $dir = Split-Path -Parent $file if ($dir) { New-Item -ItemType Directory -Force -Path $dir | Out-Null } - git show "main-branch:$file" | Out-File -FilePath $file -Encoding UTF8 -NoNewline + git show "main-branch:$file" | Out-File -FilePath $file -Encoding UTF8NoBOM -NoNewline } } } @@ -681,7 +681,7 @@ jobs: $exists = git cat-file -e "main-branch:$configFile" 2>&1 if ($LASTEXITCODE -eq 0) { Write-Host " ✓ Copying $configFile from main branch" - git show "main-branch:$configFile" | Out-File -FilePath $configFile -Encoding UTF8 -NoNewline + git show "main-branch:$configFile" | Out-File -FilePath $configFile -Encoding UTF8NoBOM -NoNewline } else { Write-Host " ℹ️ $configFile not found in main branch, skipping" } @@ -696,7 +696,7 @@ jobs: Write-Host " ✓ Copying $file from main branch" $dir = Split-Path -Parent $file if ($dir) { New-Item -ItemType Directory -Force -Path $dir | Out-Null } - git show "main-branch:$file" | Out-File -FilePath $file -Encoding UTF8 -NoNewline + git show "main-branch:$file" | Out-File -FilePath $file -Encoding UTF8NoBOM -NoNewline } } }