From 185967d74e7b9c22112503173acd5134b6c8a79c Mon Sep 17 00:00:00 2001 From: Thomas Ardal Date: Fri, 15 Nov 2024 13:04:31 +0100 Subject: [PATCH] Show log output --- .github/workflows/dotnet-core.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml index c23b78f..e418114 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet-core.yml @@ -34,6 +34,12 @@ jobs: 'src/Elmah.Io.AspNetCore.HealthChecks/Elmah.Io.AspNetCore.HealthChecks.csproj' 'src/Elmah.Io.AspNetCore.TagHelpers/Elmah.Io.AspNetCore.TagHelpers.csproj' + - name: Get logs from Docker container + run: | + container_id=$(docker ps -l -q) + docker cp $container_id:/tmp/action-log.txt action-log.txt || echo "Log file not found" + cat action-log.txt || echo "No log output available" + - name: Build run: dotnet build --configuration Release --no-restore