Skip to content

Commit b07aaab

Browse files
committed
Replace 'undefined' JSON keyword
Yep, that's what was causing me issues in GitInfo :/
1 parent 0cbe576 commit b07aaab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
ConvertFrom-Json |
4343
select -ExpandProperty id
4444
45-
$notes = (Get-Content .\changelog.md | where { !($_ -like '\*') } | %{ $_.replace('\', '\\').replace('"', "'") }) -join '\n'
45+
$notes = (Get-Content .\changelog.md | where { !($_ -like '\*') } | %{ $_.replace('\', '\\').replace('"', "'").replace('undefined', 'un-defined') }) -join '\n'
4646
$headers = @{ 'Accept'='application/vnd.github.v3+json;charset=utf-8'; 'Authorization' = "bearer $env:GITHUB_TOKEN" }
4747
$body = '{ "body":"' + $notes + '" }'
4848

0 commit comments

Comments
 (0)