Skip to content

Commit dcbb0e9

Browse files
fix: Handle multi-line JSON
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f3fa589 commit dcbb0e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/vendor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ jobs:
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
run: |
48-
$currentVersion = (Get-Content .\vendor\sources.json | ConvertFrom-Json)
48+
$currentVersion = (Get-Content -Raw .\vendor\sources.json | ConvertFrom-Json)
4949
. .\scripts\update.ps1 -verbose
5050
Set-GHVariable -Name COUNT_UPDATED -Value $count
51-
$newVersion = (Get-Content .\vendor\sources.json | ConvertFrom-Json)
51+
$newVersion = (Get-Content -Raw .\vendor\sources.json | ConvertFrom-Json)
5252
$listUpdated = ""
5353
$updateMessage = "| Name | Old Version | New Version |`n| :--- | ---- | ---- |`n"
5454
foreach ($s in $newVersion) {

0 commit comments

Comments
 (0)