mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add log grouping to build.psm1 for collapsible GitHub Actions logs (#26326)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com> Co-authored-by: Travis Plunk <travis.plunk@microsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
TravisEz13
Travis Plunk
Copilot
parent
0d7c24fb7e
commit
cdeda2a501
@@ -688,6 +688,14 @@ function Set-Path
|
||||
}
|
||||
}
|
||||
|
||||
# Display environment variables in a log group for GitHub Actions
|
||||
function Show-Environment
|
||||
{
|
||||
Write-LogGroupStart -Title 'Environment'
|
||||
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | Write-Verbose -Verbose
|
||||
Write-LogGroupEnd -Title 'Environment'
|
||||
}
|
||||
|
||||
# Bootstrap script for Linux and macOS
|
||||
function Invoke-BootstrapStage
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user