mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Added check for Ghost-CLI logs in CI
no issue - we might fail the tests but not produce any logs in Ghost-CLI - concatenating the logs would then fail because of the lack of existence of a directory - this commit adds a check that files exist before trying to get the contents of the files
This commit is contained in:
parent
6ac135d038
commit
f55f2b1587
1 changed files with 2 additions and 1 deletions
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
@ -255,7 +255,8 @@ jobs:
|
||||||
|
|
||||||
- name: Print debug logs
|
- name: Print debug logs
|
||||||
if: failure()
|
if: failure()
|
||||||
run: cat ~/.ghost/logs/*.log
|
run: |
|
||||||
|
[ -f ~/.ghost/logs/*.log ] && cat ~/.ghost/logs/*.log
|
||||||
|
|
||||||
- uses: daniellockyer/action-slack-build@master
|
- uses: daniellockyer/action-slack-build@master
|
||||||
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
|
|
Loading…
Add table
Reference in a new issue