mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Fix output size check (#744)
This commit is contained in:
parent
152627dfcb
commit
0a83e598dd
@ -30,7 +30,8 @@ export async function execute(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function stdout(data: Buffer | string): void {
|
export function stdout(data: Buffer | string): void {
|
||||||
if (output.length < buffer.constants.MAX_STRING_LENGTH) {
|
const dataString = data.toString().trim()
|
||||||
output += data.toString().trim()
|
if (output.length + dataString.length < buffer.constants.MAX_STRING_LENGTH) {
|
||||||
|
output += dataString
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user