Skip to content

Commit

Permalink
Test out with debug logs
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Baldry <[email protected]>
  • Loading branch information
jdbaldry committed Oct 26, 2024
1 parent 37fc0cc commit 384b5e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/from-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ module.exports = async ({ context, core, github }) => {
.filter((file) => file.additions > 0)
.map((file) => file.filename);

core.debug(`Modified files: ${modifiedFiles.join(" ")}`);

// Expect file paths as unordered Markdown list preceded by any number of whitespace characters.
const commentFiles = body
.split("\n")
Expand All @@ -27,6 +29,8 @@ module.exports = async ({ context, core, github }) => {
return line.trim().replace(/^\s*[-*]\s*/, "");
});

core.debug(`Comment files: ${commentFiles.join(" ")}`);

if (!commentFiles.length) {
core.setOutput("to-lint", modifiedFiles.join(" "));

Expand Down

0 comments on commit 384b5e9

Please sign in to comment.