Skip to content

Commit

Permalink
Fix multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillGutyrchik committed Apr 30, 2024
1 parent d771e8e commit a674bc4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,11 @@ jobs:
shell: powershell
run: |
echo "changelog<<^D" >> $env:GITHUB_OUTPUT
$i = 1
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 "$($i). $($match.Groups[1].Value);" >> $env:GITHUB_OUTPUT
$i = $i + 1
$index = 1
$logs = (git log --pretty=tformat:"%b" ((git tag --sort=committerdate | Select-Object -Last 2) -join "..")) -join "`n"
foreach ($match in [Regex]::Matches($logs, '```ChangeLog\n?([\w\W]*?)\n?```')) {
echo "$index. $($match.Groups[1].Value.TrimEnd(';'))." >> $env:GITHUB_OUTPUT
$index = $index + 1
}
echo ^D >> $env:GITHUB_OUTPUT
Expand Down

0 comments on commit a674bc4

Please sign in to comment.