From dd32bb7a66fc46ed7a047caf5299a5281498a1d2 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Thu, 17 Aug 2023 10:18:56 -0500 Subject: [PATCH] Update main.ts --- main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 8d68755..91c09fc 100755 --- a/main.ts +++ b/main.ts @@ -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 = ( @@ -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)) }