We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e40b83 commit f8dc4cfCopy full SHA for f8dc4cf
src/execute.ts
@@ -1,6 +1,7 @@
1
import {exec} from '@actions/exec'
2
+import buffer from 'buffer'
3
-let output: string
4
+let output = ''
5
6
/** Wrapper around the GitHub toolkit exec command which returns the output.
7
* Also allows you to easily toggle the current working directory.
@@ -29,5 +30,7 @@ export async function execute(
29
30
}
31
32
export function stdout(data: any): string | void {
- output += data.toString().trim()
33
+ if (output.length < buffer.constants.MAX_STRING_LENGTH) {
34
+ output += data.toString().trim()
35
+ }
36
0 commit comments