Try to display job log in specific stage

pull/3597/head
Chocobozzz 2021-01-14 09:20:38 +01:00
parent 606bcaf29e
commit 5ec8a71f84
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 5 additions and 1 deletions

View File

@ -98,7 +98,11 @@ jobs:
- name: Display errors
if: ${{ always() }}
run: |
(test -f dist/scripts/parse-log.js && NODE_ENV=test node dist/scripts/parse-log.js -l error -f artifacts/*.log) || \
( \
test -f dist/scripts/parse-log.js && \
cat *-ci.log | uniq -c && \
NODE_ENV=test node dist/scripts/parse-log.js -l error -f artifacts/*.log \
) || \
echo "parse-log.js script does not exist, skipping."
- name: Upload logs