Skip to content

Commit dd32bb7

Browse files
authored
Update main.ts
1 parent acd8e59 commit dd32bb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (baseRef) {
5252
console.log(changedFiles);
5353

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

5858
changedFeatures = (
@@ -70,5 +70,5 @@ core.setOutput("changed-features", JSON.stringify(changedFeatures));
7070
if (changedFeatures.length) {
7171
core.setOutput("relevant-features", JSON.stringify(changedFeatures))
7272
} else {
73-
core.setOutput("relevant-features", JSON.stringify(features))
73+
core.setOutput("relevant-features", JSON.stringify(allFeatures))
7474
}

0 commit comments

Comments
 (0)