Skip to content

Commit 4e6cf5c

Browse files
Exclude added files
1 parent 2fde988 commit 4e6cf5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
3131
return github.rest.pulls.listFiles({ owner, repo, pull_number })
3232
.then(async ({ data: files }) => {
33-
const filenames = files.map(file => file.filename);
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)