Skip to content

Commit

Permalink
Increase maxBuffer from 1MB to 20MB (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean90 authored Mar 3, 2021
1 parent 1d4ed27 commit 4dfcd28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2636,7 +2636,11 @@ function run(cmd, options) {
core.debug(cmd);

try {
const stdout = execSync(cmd, { encoding: "utf8", cwd: optionsWithDefaults.dir });
const stdout = execSync(cmd, {
encoding: "utf8",
cwd: optionsWithDefaults.dir,
maxBuffer: 20 * 1024 * 1024,
});
const output = {
status: 0,
stdout: stdout.trim(),
Expand Down
6 changes: 5 additions & 1 deletion src/utils/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ function run(cmd, options) {
core.debug(cmd);

try {
const stdout = execSync(cmd, { encoding: "utf8", cwd: optionsWithDefaults.dir });
const stdout = execSync(cmd, {
encoding: "utf8",
cwd: optionsWithDefaults.dir,
maxBuffer: 20 * 1024 * 1024,
});
const output = {
status: 0,
stdout: stdout.trim(),
Expand Down

0 comments on commit 4dfcd28

Please sign in to comment.