Merge pull request #10433 from Icinga/gha-windows-logs-artifacts

GitHub Actions: Show log files in Windows jobs
This commit is contained in:
Yonas Habteab 2025-05-16 10:40:28 +02:00 committed by GitHub
commit d1f0ffe778
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,3 +46,12 @@ jobs:
if ($LastExitCode -ne 0) { throw "Error during build" }
& powershell.exe .\tools\win32\test.ps1
if ($LastExitCode -ne 0) { throw "Error during test" }
- name: Show Log Files
if: ${{ always() }}
run: |
foreach ($file in Get-ChildItem -Recurse -Filter "*.log") {
Write-Host "::group::$($file.FullName)"
Get-Content $file.FullName
Write-Host "::endgroup::"
}