Skip to content

Commit

Permalink
fix: add newline at end of info.json
Browse files Browse the repository at this point in the history
  • Loading branch information
carsakiller committed Jan 21, 2023
1 parent 1666ada commit d1aba1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ async function run() {
`${submodulePath} | Size: ${info.size} | Plugin: ${info.hasPlugin}`
);

fs.promises.writeFile(infoFilePath, JSON.stringify(info, null, " "));
fs.promises.writeFile(
infoFilePath,
`${JSON.stringify(info, null, " ")}\n`
);
}
} catch (error) {
if (error instanceof Error) return core.setFailed(error.message);
Expand Down

0 comments on commit d1aba1f

Please sign in to comment.