Skip to content

Commit

Permalink
chore: log failing steps (#12750)
Browse files Browse the repository at this point in the history
  • Loading branch information
droshev authored Nov 22, 2024
1 parent 3384610 commit 75a9886
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/nodejs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,15 @@ runs:
if: inputs.frozen-lockfile != 'true' || steps.node_modules.outputs.cache-hit != 'true'
run: yarn install ${{ inputs.frozen-lockfile == 'true' && '--frozen-lockfile' || '' }}
shell: bash

- name: Output nx build logs
if: failure()
run: |
log_files=$(find /tmp -name '*.log')
echo "Found log files: $log_files"
for log_file in $log_files; do
echo "====== Contents of $log_file ======"
cat "$log_file"
done
shell: bash

0 comments on commit 75a9886

Please sign in to comment.