Skip to content

Commit b9be8ac

Browse files
Exclude added files
1 parent 2fde988 commit b9be8ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check-no-important-files-changed.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
const pull_number = context.issue.number
3030
3131
return github.rest.pulls.listFiles({ owner, repo, pull_number })
32-
.then(async ({ data: files }) => {
33-
const filenames = files.map(file => file.filename);
32+
.then(async ({ data: files }) => {
33+
const filenames = files.filter(file => file.status !== "added").map(file => file.filename);
3434
console.log(`Files in PR: ${filenames}`);
3535
3636
// Cache the parsed exercise config file's invalidator files

0 commit comments

Comments
 (0)