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 039ecd3 commit da3126b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ core.setOutput("features", JSON.stringify(features))

// These are the CHANGED files.
// https://github.com/dorny/paths-filter
const { src_files, test_files } = JSON.parse(process.env.PATHS_FILTER_OUTPUTS)
console.log(src_files, test_files, JSON.parse(process.env.PATHS_FILTER_OUTPUTS))
const srcFiles = JSON.parse(process.env.PATHS_FILTER_OUTPUTS_SRC_FILES)
const testFiles = JSON.parse(process.env.PATHS_FILTER_OUTPUTS_TEST_FILES)

const changedFeatureIds = [
// These paths are from BEFORE the 'process.chdir()'
...src_files?.map(x => x.match(/src\/(.*?)\//)[1]).filter(x => x),
...test_files?.map(x => x.match(/test\/(.*?)\//)[1]).filter(x => x),
...srcFiles?.map(x => x.match(/src\/(.*?)\//)[1]).filter(x => x),
...testFiles?.map(x => x.match(/test\/(.*?)\//)[1]).filter(x => x),
]
const changedFeatures = (await Promise.all(
changedFeatureIds.map(id =>
Expand Down

0 comments on commit da3126b

Please sign in to comment.