From b833bb0934c3f5bf80f515aad09bed1ba7f1f21a Mon Sep 17 00:00:00 2001 From: Sudhanshu Mishra Date: Tue, 11 Aug 2020 18:37:49 +0530 Subject: [PATCH] Remove logging --- dist/index.js | 6 +++--- index.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index d9bc43d..b19a1a1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61,15 +61,15 @@ const { promises: fs } = __webpack_require__(747); const main = async () => { const filePaths = core.getInput('files').split(" "); - console.log(filePaths); + var output = ""; + filePaths.forEach(async(filePath) => { if(filePath.includes("migrations")){ - output += `==========================${filePath}==========================\n\n`; + output += `========================== ${filePath} ==========================\n\n`; const content = await fs.readFile(filePath, 'utf8'); output += content + "\n\n"; - console.log(output); } diff --git a/index.js b/index.js index 4ec67b5..6ea571e 100644 --- a/index.js +++ b/index.js @@ -5,15 +5,15 @@ const { promises: fs } = require('fs'); const main = async () => { const filePaths = core.getInput('files').split(" "); - console.log(filePaths); + var output = ""; + filePaths.forEach(async(filePath) => { if(filePath.includes("migrations")){ - output += `==========================${filePath}==========================\n\n`; + output += `========================== ${filePath} ==========================\n\n`; const content = await fs.readFile(filePath, 'utf8'); output += content + "\n\n"; - console.log(output); }