From 04156c409c0737566c00881a31c284e27bd6b9fb Mon Sep 17 00:00:00 2001 From: Bruno Logerfo Date: Fri, 25 Oct 2019 12:02:04 -0300 Subject: [PATCH 1/2] release date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c30cb03..6090e4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,2 @@ -## 0.0.1 - 2019-10-24 +## 0.0.1 - 2019-10-25 Initial release. From 3ea4e6fbd6a41cd65219cfa307c782db8ba51bf4 Mon Sep 17 00:00:00 2001 From: Bruno Logerfo Date: Fri, 25 Oct 2019 12:04:52 -0300 Subject: [PATCH 2/2] fix skipping everything instead of single file --- src/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index e8531ca..d82f4c2 100644 --- a/src/main.js +++ b/src/main.js @@ -113,16 +113,16 @@ async function processFiles(config) { for (const element of changedFiles.data) { if (!paths.includes(`${REPO_DIRECTORY}/${element.filename}`)) { core.info(`${element.filename} is ignored. Skipping...`); - return; + continue; } if (!isText(element.filename)) { core.info(`${element.filename} is not a text file. Skipping...`); - return; + continue; } const file = await fs.readFile(element.filename, { encoding: "utf8" }); if (file.endsWith("\n") || file.endsWith("\r")) { core.info(`${element.filename} is not compromised. Skipping...`); - return; + continue; } core.info(`${element.filename} is compromised. Fixing...`); const newFile = file.concat(getLineBreakChar(file));