diff --git a/dist/index.js b/dist/index.js
index ce830a8..d9bc43d 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -63,14 +63,16 @@ const main = async () => {
   const filePaths = core.getInput('files').split(" ");
   console.log(filePaths);
   var output = "";
-  filePaths.forEach(async(filePath) =>{
-    console.log(filePath);
+  filePaths.forEach(async(filePath) => {
+
     if(filePath.includes("migrations")){
       output += `==========================${filePath}==========================\n\n`;
       const content = await fs.readFile(filePath, 'utf8');
       output += content + "\n\n";
-      console.log(content);
+      console.log(output);
+
     }
+
   });
   core.setOutput('content', output);
 }
diff --git a/index.js b/index.js
index 9cd25a3..4ec67b5 100644
--- a/index.js
+++ b/index.js
@@ -7,14 +7,16 @@ const main = async () => {
   const filePaths = core.getInput('files').split(" ");
   console.log(filePaths);
   var output = "";
-  filePaths.forEach(async(filePath) =>{
-    console.log(filePath);
+  filePaths.forEach(async(filePath) => {
+
     if(filePath.includes("migrations")){
       output += `==========================${filePath}==========================\n\n`;
       const content = await fs.readFile(filePath, 'utf8');
       output += content + "\n\n";
-      console.log(content);
+      console.log(output);
+
     }
+
   });
   core.setOutput('content', output);
 }