Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr committed Aug 17, 2023
1 parent d4dc353 commit 5fe18bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ const path = core.getInput("path");
process.chdir(path);
$.cwd = process.cwd();

const features = await Promise.all(
const allFeatures = await Promise.all(
(
await glob("src/*/devcontainer-feature.json")
).map((f) => readFile(f, "utf8").then((x) => JSON.parse(x)))
);
console.log("features", features)
core.setOutput("features", JSON.stringify(features));
console.log("all-features", features)
core.setOutput("all-features", JSON.stringify(allFeatures));

const eventName = process.env.GITHUB_EVENT_NAME;
const event = JSON.parse(process.env.GITHUB_EVENT);
Expand Down Expand Up @@ -51,9 +51,9 @@ if (baseRef) {
.split(/\r?\n/g);
console.log(changedFiles);

const changedIds = changedFiles
const changedIds = [...new Set(changedFiles
.map((x) => x.match(/src\/(.*?)\//)?.[1])
.filter((x) => x);
.filter((x) => x))];

changedFeatures = (
await Promise.all(
Expand Down

0 comments on commit 5fe18bc

Please sign in to comment.