Compare commits

...

3 Commits

Author SHA1 Message Date
Tonye Jack
652648acb4 feat: deduplicate dir names list (#1183)
Co-authored-by: GitHub Action <action@github.com>
2023-05-26 11:18:05 -06:00
Tonye Jack
8a36220d04 Update README.md 2023-05-26 11:07:59 -06:00
tj-actions[bot]
04de9221b6 Upgraded to v36.0.5 (#1182)
Co-authored-by: jackton1 <jackton1@users.noreply.github.com>
2023-05-26 17:06:47 +00:00
5 changed files with 16 additions and 2 deletions

View File

@@ -1,5 +1,17 @@
# Changelog
# [36.0.5](https://github.com/tj-actions/changed-files/compare/v36.0.4...v36.0.5) - (2023-05-26)
## <!-- 1 -->🐛 Bug Fixes
- Error detecting initial commits ([#1181](https://github.com/tj-actions/changed-files/issues/1181)) ([9ad1a5b](https://github.com/tj-actions/changed-files/commit/9ad1a5b96ab3e56cd2bb25ff90c6271e4e70eb71)) - (Tonye Jack)
## <!-- 9 -->⬆️ Upgrades
- Upgraded to v36.0.4 ([#1180](https://github.com/tj-actions/changed-files/issues/1180))
Co-authored-by: jackton1 <jackton1@users.noreply.github.com> ([88fb02b](https://github.com/tj-actions/changed-files/commit/88fb02bd31e70f28785e86cc76437eff17f48e18)) - (tj-actions[bot])
# [36.0.4](https://github.com/tj-actions/changed-files/compare/v36.0.3...v36.0.4) - (2023-05-26)
## <!-- 1 -->🐛 Bug Fixes

View File

@@ -45,7 +45,7 @@ Retrieve all changed files and directories relative to a target branch, preceedi
* Supports Git submodules.
* Escaped JSON output which can be used to run matrix jobs based on changed files.
* List changed directories.
* Restrict the max depth of changed directories.
* Restrict the max depth of matching changed directories.
* Write outputs to a `.txt` or `.json` file at a specified location for further processing.
* Monorepos (Fetches a fixed number of commits).
* Supports all platforms (Linux, MacOS, Windows).

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) {