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
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 });