Skip to content

Commit dcac7db

Browse files
autarchclaude
andcommitted
Dump cpanm build log after DateTime install failure too
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d9f6ddf commit dcac7db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,10 @@ jobs:
2828
2929
- name: Install DateTime with cpanm (verbose)
3030
run: cpanm --verbose --notest DateTime
31+
32+
- name: Show cpanm build log on DateTime failure
33+
if: failure()
34+
shell: pwsh
35+
run: |
36+
$log = "$env:USERPROFILE\.cpanm\work\$(Get-ChildItem $env:USERPROFILE\.cpanm\work | Sort-Object LastWriteTime -Descending | Select-Object -First 1 -ExpandProperty Name)\build.log"
37+
if (Test-Path $log) { Get-Content $log }

0 commit comments

Comments
 (0)