Skip to content

Commit

Permalink
filter out non-ttl files
Browse files Browse the repository at this point in the history
closes #5
  • Loading branch information
nleanba committed Jul 12, 2024
1 parent b8e0553 commit e6ed410
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,18 @@ const _worker = new GHActWorker(
added = files.added;
modified = files.modified;
removed = files.removed;
if (files.till && files.till !== "HEAD") {
job.till = files.till;
}
job.from = files.from;
job.till = files.till;
} else {
throw new Error(
"Could not start job, neither explicit file list nor from-commit specified",
);
}

added = added.filter((f) => f.endsWith(".ttl"));
removed = removed.filter((f) => f.endsWith(".ttl"));
modified = modified.filter((f) => f.endsWith(".ttl"));

log(`> got added ${added}`); // -> LOAD
log(`> got removed ${removed}`); // -> DROP graphname
log(`> got modified ${modified}`); // DROP; LOAD
Expand Down

0 comments on commit e6ed410

Please sign in to comment.