diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8a079a6..ef5709f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -79,8 +79,11 @@ jobs: # Get vendor versions from sources.json $vendorInfo = @() $sources = Get-Content "vendor\sources.json" -Raw | ConvertFrom-Json - $vendorDirs = $sources.PSObject.Properties | ForEach-Object { $_.Name } - foreach ($dir in $vendorDirs) { + foreach ($source in $sources) { + $dir = $source.name + if (-not $dir) { + continue + } $versionFile = "vendor/$dir/.cmderver" if (Test-Path $versionFile) { $version = Get-Content $versionFile -Raw