3
0
Fork 0
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:
Tonye Jack 2023-05-26 11:18:05 -06:00 committed by GitHub
parent 8a36220d04
commit 652648acb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

1
dist/index.js generated vendored
View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -133,6 +133,7 @@ export const getDiffFiles = async ({
excludeRoot: inputs.dirNamesExcludeRoot
})
)
files = [...new Set(files)]
}
if (inputs.json) {