Skip to content

Commit 9db3225

Browse files
committed
Try to be cleverer
1 parent 6b539a3 commit 9db3225

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/buildsite.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ jobs:
3232
git add docs/
3333
if [ "$GIT_STATUS" != "" ]; then git commit -m "Web site generation"; fi
3434
if [ "$GIT_STATUS" != "" ]; then git push; fi
35+
- name: Copy cpanm logs
36+
if: ${{ failure() }}
37+
run: |
38+
mkdir -p .cpanm/work
39+
sudo cp -r /root/.cpanm/work .cpanm/work
40+
sudo chmod -R a+r .cpanm
3541
- name: Archive CPAN logs
3642
if: ${{ failure() }}
3743
uses: actions/upload-artifact@v2
3844
with:
3945
name: cpan_log
40-
path: /root/.cpanm/work/*/build.log
46+
path: .cpanm/work/*/build.log
4147
retention-days: 2

0 commit comments

Comments
 (0)