From 68048632f03b7a0d474fac56a8231d241b3f2388 Mon Sep 17 00:00:00 2001 From: gautamkrishnar Date: Wed, 20 Jan 2021 21:38:01 +0530 Subject: [PATCH] using pipes to remove confusing logs --- blog-post-workflow.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blog-post-workflow.js b/blog-post-workflow.js index ac1a12a..0ebbe54 100644 --- a/blog-post-workflow.js +++ b/blog-post-workflow.js @@ -309,8 +309,9 @@ Promise.allSettled(promiseArray).then((results) => { if (postsArray.length > 0) { try { if (!process.env.TEST_MODE) { - await exec('git', ['config','pull.rebase', 'true']); - await exec('git',['pull']); // Pulling the latest changes from upstream + await exec('git', ['config','pull.rebase', 'true'], {stdio: ['pipe', 'pipe', 'pipe']}); + // Pulling the latest changes from upstream + await exec('git',['pull'], {stdio: ['pipe', 'pipe', 'pipe']}); } const readmeData = fs.readFileSync(README_FILE_PATH, 'utf8'); const template = core.getInput('template');