Skip to content

Commit 185967d

Browse files
committed
Show log output
1 parent 9087a90 commit 185967d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
'src/Elmah.Io.AspNetCore.HealthChecks/Elmah.Io.AspNetCore.HealthChecks.csproj'
3535
'src/Elmah.Io.AspNetCore.TagHelpers/Elmah.Io.AspNetCore.TagHelpers.csproj'
3636
37+
- name: Get logs from Docker container
38+
run: |
39+
container_id=$(docker ps -l -q)
40+
docker cp $container_id:/tmp/action-log.txt action-log.txt || echo "Log file not found"
41+
cat action-log.txt || echo "No log output available"
42+
3743
- name: Build
3844
run: dotnet build --configuration Release --no-restore
3945

0 commit comments

Comments
 (0)