Skip to content

Commit 516c0f7

Browse files
committed
fix: use tailLines if bigger but only if <= 5000
1 parent 106d802 commit 516c0f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/github/actions.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,9 @@ func downloadLogContent(ctx context.Context, logURL string, tailLines int, maxLi
761761
tailLines = 1000
762762
}
763763

764-
bufferSize := tailLines
765-
if bufferSize > maxLines {
766-
bufferSize = maxLines
764+
bufferSize := maxLines
765+
if tailLines > maxLines && tailLines <= 5000 {
766+
bufferSize = tailLines
767767
}
768768

769769
processedInput, totalLines, httpResp, err := buffer.ProcessResponseAsRingBufferToEnd(httpResp, bufferSize)

0 commit comments

Comments
 (0)