mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-21 05:28:14 +00:00
feat: deduplicate dir names list (#1183)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
8a36220d04
commit
652648acb4
3 changed files with 3 additions and 1 deletions
1
dist/index.js
generated
vendored
1
dist/index.js
generated
vendored
|
@ -120,6 +120,7 @@ const getDiffFiles = ({ inputs, workingDirectory, hasSubmodule, diffResult, diff
|
|||
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
|
||||
excludeRoot: inputs.dirNamesExcludeRoot
|
||||
}));
|
||||
files = [...new Set(files)];
|
||||
}
|
||||
if (inputs.json) {
|
||||
return (0, utils_1.jsonOutput)({ value: files, shouldEscape: inputs.escapeJson });
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -133,6 +133,7 @@ export const getDiffFiles = async ({
|
|||
excludeRoot: inputs.dirNamesExcludeRoot
|
||||
})
|
||||
)
|
||||
files = [...new Set(files)]
|
||||
}
|
||||
|
||||
if (inputs.json) {
|
||||
|
|
Loading…
Add table
Reference in a new issue