Skip to content

Commit ed87cc6

Browse files
authored
summary: increase limit to 1MiB
1 parent edee7cd commit ed87cc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/markdown-summary.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {constants, promises} from 'fs'
33
const {access, appendFile, stat, writeFile} = promises
44

55
// The runner & server will also block any upload greater than this size
6-
export const SUMMARY_LIMIT_BYTES = 128 * 1024
6+
export const SUMMARY_LIMIT_BYTES = 1024 * 1024 // 1MiB
77
export const SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY'
88
export const SUMMARY_DOCS_URL =
99
'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-markdown-summary'
@@ -154,7 +154,7 @@ class MarkdownSummary {
154154
this.emptyBuffer()
155155
const limitK = SUMMARY_LIMIT_BYTES / 1024
156156
throw new Error(
157-
`Aborting write to summary file. File size would exceed limit of ${limitK}k. For more information see: ${SUMMARY_DOCS_URL}`
157+
`Aborting write to summary file. File size would exceed limit of ${limitK}KiB. For more information see: ${SUMMARY_DOCS_URL}`
158158
)
159159
}
160160

0 commit comments

Comments
 (0)