new line GitHub env improvements

This commit is contained in:
David Refoua 2022-10-17 23:35:29 +03:30
parent d767c9b2e9
commit 9151fb3469
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ jobs:
}
}
Set-GHVariable -Name LIST_UPDATED -Value $listUpdated.Trim(', ')
Set-GHVariable -Name UPDATE_MESSAGE -Value $updateMessage.Replace("%", "%25").Replace("`r", "%0D").Replace("`n", "%0A")
Set-GHVariable -Name UPDATE_MESSAGE -Value $updateMessage
- uses: peter-evans/create-pull-request@v4
with:

View File

@ -78,7 +78,7 @@ function Set-GHVariable {
Write-Verbose "Setting CI variable $Name to $Value" -Verbose
if ($env:GITHUB_ENV) {
"$Name=$Value" | Out-File $env:GITHUB_ENV -Append
echo "$Name=$Value" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
}
}