Skip to content

Commit 2301189

Browse files
committed
Use tail rather than cat due to large log file sizes
1 parent 1ab28d0 commit 2301189

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/windows_test_npm_install.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ jobs:
234234
- name: 'View log file'
235235
if: failure()
236236
run: |
237-
cat 'C:\ProgramData\chocolatey\logs\chocolatey.log'
237+
echo "Printing the last ${{ env.LOG_NUM_LINES }} lines of log output..."
238+
tail -${{ env.LOG_NUM_LINES }} 'C:\ProgramData\chocolatey\logs\chocolatey.log'
238239
timeout-minutes: 5
239240

240241
# Configure npm:

0 commit comments

Comments
 (0)