3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-02-21 05:28:14 +00:00

remove: deprecated dir_names_exclude_root (#1291)

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
Tonye Jack 2023-06-23 12:06:47 -06:00 committed by GitHub
parent 63f203d400
commit faa5db4b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 23 deletions

View file

@ -920,7 +920,7 @@ jobs:
exit 1
shell:
bash
- name: Run changed-files with dir_names and dir_names_exclude_root
- name: Run changed-files with dir_names and dir_names_exclude_current_dir
id: changed-files-dir-names-exclude-root
uses: ./
with:
@ -928,7 +928,7 @@ jobs:
sha: ce8c1983
fetch_depth: 60000
dir_names: "true"
dir_names_exclude_root: "true"
dir_names_exclude_current_dir: "true"
dir_names_max_depth: "1"
- name: Show output
run: |

View file

@ -112,11 +112,6 @@ inputs:
description: "Exclude the current directory represented by `.` from the output when `dir_names` is set to `true`."
required: false
default: "false"
dir_names_exclude_root:
description: "Exclude the root directory represented by `.` from the output when `dir_names`is set to `true`."
required: false
default: "false"
deprecationMessage: "Use `dir_names_exclude_current_dir` instead."
json:
description: "Output list of changed files in a JSON formatted string which can be used for matrix jobs."
required: false

8
dist/index.js generated vendored
View file

@ -158,7 +158,7 @@ function* getChangeTypeFilesGenerator({ inputs, changedFiles, changeTypes }) {
yield (0, utils_1.getDirnameMaxDepth)({
pathStr: file,
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
excludeCurrentDir: inputs.dirNamesExcludeRoot || inputs.dirNamesExcludeCurrentDir
excludeCurrentDir: inputs.dirNamesExcludeCurrentDir
});
}
else {
@ -189,7 +189,7 @@ function* getAllChangeTypeFilesGenerator({ inputs, changedFiles }) {
yield (0, utils_1.getDirnameMaxDepth)({
pathStr: file,
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
excludeCurrentDir: inputs.dirNamesExcludeRoot || inputs.dirNamesExcludeCurrentDir
excludeCurrentDir: inputs.dirNamesExcludeCurrentDir
});
}
else {
@ -1226,9 +1226,6 @@ const getInputs = () => {
const dirNamesMaxDepth = core.getInput('dir_names_max_depth', {
required: false
});
const dirNamesExcludeRoot = core.getBooleanInput('dir_names_exclude_root', {
required: false
});
const dirNamesExcludeCurrentDir = core.getBooleanInput('dir_names_exclude_current_dir', {
required: false
});
@ -1279,7 +1276,6 @@ const getInputs = () => {
oldNewFilesSeparator,
// End Not Supported via REST API
dirNames,
dirNamesExcludeRoot,
dirNamesExcludeCurrentDir,
json,
escapeJson,

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -172,8 +172,7 @@ function* getChangeTypeFilesGenerator({
yield getDirnameMaxDepth({
pathStr: file,
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
excludeCurrentDir:
inputs.dirNamesExcludeRoot || inputs.dirNamesExcludeCurrentDir
excludeCurrentDir: inputs.dirNamesExcludeCurrentDir
})
} else {
yield file
@ -220,8 +219,7 @@ function* getAllChangeTypeFilesGenerator({
yield getDirnameMaxDepth({
pathStr: file,
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
excludeCurrentDir:
inputs.dirNamesExcludeRoot || inputs.dirNamesExcludeCurrentDir
excludeCurrentDir: inputs.dirNamesExcludeCurrentDir
})
} else {
yield file

View file

@ -28,7 +28,6 @@ export type Inputs = {
diffRelative: boolean
dirNames: boolean
dirNamesMaxDepth?: number
dirNamesExcludeRoot: boolean
dirNamesExcludeCurrentDir: boolean
json: boolean
escapeJson: boolean
@ -125,9 +124,6 @@ export const getInputs = (): Inputs => {
const dirNamesMaxDepth = core.getInput('dir_names_max_depth', {
required: false
})
const dirNamesExcludeRoot = core.getBooleanInput('dir_names_exclude_root', {
required: false
})
const dirNamesExcludeCurrentDir = core.getBooleanInput(
'dir_names_exclude_current_dir',
{
@ -191,7 +187,6 @@ export const getInputs = (): Inputs => {
oldNewFilesSeparator,
// End Not Supported via REST API
dirNames,
dirNamesExcludeRoot,
dirNamesExcludeCurrentDir,
json,
escapeJson,