Skip to content

Commit

Permalink
Test multiline output
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillGutyrchik committed Apr 30, 2024
1 parent 6147550 commit 1f80385
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ jobs:
shell: powershell
run: |
$i = 1
$changelog = foreach ($match in [Regex]::Matches($(git log $((git tag --sort=committerdate | Select-Object -Last 2) -join "..")), '```ChangeLog[\r\n\s]+([\w\W]+?)[\r\n\s]+```')) {
echo -n "$($i). $($match.Groups[1].Value);"
foreach ($match in [Regex]::Matches($(git log $((git tag --sort=committerdate | Select-Object -Last 2) -join "..")), '```ChangeLog[\r\n\s]+([\w\W]+?)[\r\n\s]+```')) {
$changelog = $changelog + "$($i). $($match.Groups[1].Value);`n"
$i = $i + 1
}
echo $changelog
echo "changelog=$changelog" >> $env:GITHUB_OUTPUT
echo "changelog=@"$changelog"@" >> $env:GITHUB_OUTPUT
- name: Pack
shell: powershell
Expand Down

0 comments on commit 1f80385

Please sign in to comment.