Skip to content

Commit

Permalink
Fix multiline output
Browse files Browse the repository at this point in the history
  • Loading branch information
igoravl committed Jul 24, 2024
1 parent 8e7ee20 commit 81ae7fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ jobs:
run: |
$fileName = (Get-ChildItem [0-9]*.md -Recurse | Sort-Object Name | Select -ExpandProperty FullName -Last 1)
echo $fileName
$releaseNotes = (Get-Content $fileName -Encoding UTF8 | Select-Object -Skip 4) -join '%0A'
$releaseNotes = (Get-Content $fileName -Encoding UTF8 | Select-Object -Skip 4)
echo $releaseNotes
echo "RELEASE_NOTES=$releaseNotes" >> $env:GITHUB_OUTPUT
echo 'RELEASE_NOTES<<EOF' >> $env:GITHUB_OUTPUT
echo $releaseNotes >> $env:GITHUB_OUTPUT
echo 'EOF' >> $env:GITHUB_OUTPUT
- name: Create Draft Release
id: create_release
shell: pwsh
Expand Down

0 comments on commit 81ae7fd

Please sign in to comment.