Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Aug 17, 2023
1 parent acd8e59 commit dd32bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if (baseRef) {
console.log(changedFiles);

const changedIds = [...new Set(changedFiles
.map((x) => x.match(/src\/(.*?)\//)?.[1])
.map((x) => x.match(/(?:src|test)\/(.*?)\//)?.[1])
.filter((x) => x))].filter(x => allFeatures.map(y => y.id).includes(x));

changedFeatures = (
Expand All @@ -70,5 +70,5 @@ core.setOutput("changed-features", JSON.stringify(changedFeatures));
if (changedFeatures.length) {
core.setOutput("relevant-features", JSON.stringify(changedFeatures))
} else {
core.setOutput("relevant-features", JSON.stringify(features))
core.setOutput("relevant-features", JSON.stringify(allFeatures))
}

0 comments on commit dd32bb7

Please sign in to comment.