mirror of
https://github.com/cmderdev/cmder.git
synced 2025-12-17 11:11:37 +08:00
Update .github/workflows/build.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -86,9 +86,13 @@ jobs:
|
|||||||
|
|
||||||
# Read vendor sources.json and add to summary
|
# Read vendor sources.json and add to summary
|
||||||
$vendorSources = Get-Content "vendor/sources.json" | ConvertFrom-Json
|
$vendorSources = Get-Content "vendor/sources.json" | ConvertFrom-Json
|
||||||
|
if ($vendorSources.Count -eq 0) {
|
||||||
|
$summary += "`n| _No vendor packages found_ | |"
|
||||||
|
} else {
|
||||||
foreach ($vendor in $vendorSources) {
|
foreach ($vendor in $vendorSources) {
|
||||||
$summary += "`n| ``$($vendor.name)`` | $($vendor.version) |"
|
$summary += "`n| ``$($vendor.name)`` | $($vendor.version) |"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$summary += "`n"
|
$summary += "`n"
|
||||||
|
|
||||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||||
|
|||||||
Reference in New Issue
Block a user