mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-22 01:17:40 +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:
parent
63f203d400
commit
faa5db4b1d
6 changed files with 7 additions and 23 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
@ -920,7 +920,7 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
shell:
|
shell:
|
||||||
bash
|
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
|
id: changed-files-dir-names-exclude-root
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
@ -928,7 +928,7 @@ jobs:
|
||||||
sha: ce8c1983
|
sha: ce8c1983
|
||||||
fetch_depth: 60000
|
fetch_depth: 60000
|
||||||
dir_names: "true"
|
dir_names: "true"
|
||||||
dir_names_exclude_root: "true"
|
dir_names_exclude_current_dir: "true"
|
||||||
dir_names_max_depth: "1"
|
dir_names_max_depth: "1"
|
||||||
- name: Show output
|
- name: Show output
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -112,11 +112,6 @@ inputs:
|
||||||
description: "Exclude the current directory represented by `.` from the output when `dir_names` is set to `true`."
|
description: "Exclude the current directory represented by `.` from the output when `dir_names` is set to `true`."
|
||||||
required: false
|
required: false
|
||||||
default: "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:
|
json:
|
||||||
description: "Output list of changed files in a JSON formatted string which can be used for matrix jobs."
|
description: "Output list of changed files in a JSON formatted string which can be used for matrix jobs."
|
||||||
required: false
|
required: false
|
||||||
|
|
8
dist/index.js
generated
vendored
8
dist/index.js
generated
vendored
|
@ -158,7 +158,7 @@ function* getChangeTypeFilesGenerator({ inputs, changedFiles, changeTypes }) {
|
||||||
yield (0, utils_1.getDirnameMaxDepth)({
|
yield (0, utils_1.getDirnameMaxDepth)({
|
||||||
pathStr: file,
|
pathStr: file,
|
||||||
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
|
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
|
||||||
excludeCurrentDir: inputs.dirNamesExcludeRoot || inputs.dirNamesExcludeCurrentDir
|
excludeCurrentDir: inputs.dirNamesExcludeCurrentDir
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -189,7 +189,7 @@ function* getAllChangeTypeFilesGenerator({ inputs, changedFiles }) {
|
||||||
yield (0, utils_1.getDirnameMaxDepth)({
|
yield (0, utils_1.getDirnameMaxDepth)({
|
||||||
pathStr: file,
|
pathStr: file,
|
||||||
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
|
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
|
||||||
excludeCurrentDir: inputs.dirNamesExcludeRoot || inputs.dirNamesExcludeCurrentDir
|
excludeCurrentDir: inputs.dirNamesExcludeCurrentDir
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1226,9 +1226,6 @@ const getInputs = () => {
|
||||||
const dirNamesMaxDepth = core.getInput('dir_names_max_depth', {
|
const dirNamesMaxDepth = core.getInput('dir_names_max_depth', {
|
||||||
required: false
|
required: false
|
||||||
});
|
});
|
||||||
const dirNamesExcludeRoot = core.getBooleanInput('dir_names_exclude_root', {
|
|
||||||
required: false
|
|
||||||
});
|
|
||||||
const dirNamesExcludeCurrentDir = core.getBooleanInput('dir_names_exclude_current_dir', {
|
const dirNamesExcludeCurrentDir = core.getBooleanInput('dir_names_exclude_current_dir', {
|
||||||
required: false
|
required: false
|
||||||
});
|
});
|
||||||
|
@ -1279,7 +1276,6 @@ const getInputs = () => {
|
||||||
oldNewFilesSeparator,
|
oldNewFilesSeparator,
|
||||||
// End Not Supported via REST API
|
// End Not Supported via REST API
|
||||||
dirNames,
|
dirNames,
|
||||||
dirNamesExcludeRoot,
|
|
||||||
dirNamesExcludeCurrentDir,
|
dirNamesExcludeCurrentDir,
|
||||||
json,
|
json,
|
||||||
escapeJson,
|
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
|
@ -172,8 +172,7 @@ function* getChangeTypeFilesGenerator({
|
||||||
yield getDirnameMaxDepth({
|
yield getDirnameMaxDepth({
|
||||||
pathStr: file,
|
pathStr: file,
|
||||||
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
|
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
|
||||||
excludeCurrentDir:
|
excludeCurrentDir: inputs.dirNamesExcludeCurrentDir
|
||||||
inputs.dirNamesExcludeRoot || inputs.dirNamesExcludeCurrentDir
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
yield file
|
yield file
|
||||||
|
@ -220,8 +219,7 @@ function* getAllChangeTypeFilesGenerator({
|
||||||
yield getDirnameMaxDepth({
|
yield getDirnameMaxDepth({
|
||||||
pathStr: file,
|
pathStr: file,
|
||||||
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
|
dirNamesMaxDepth: inputs.dirNamesMaxDepth,
|
||||||
excludeCurrentDir:
|
excludeCurrentDir: inputs.dirNamesExcludeCurrentDir
|
||||||
inputs.dirNamesExcludeRoot || inputs.dirNamesExcludeCurrentDir
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
yield file
|
yield file
|
||||||
|
|
|
@ -28,7 +28,6 @@ export type Inputs = {
|
||||||
diffRelative: boolean
|
diffRelative: boolean
|
||||||
dirNames: boolean
|
dirNames: boolean
|
||||||
dirNamesMaxDepth?: number
|
dirNamesMaxDepth?: number
|
||||||
dirNamesExcludeRoot: boolean
|
|
||||||
dirNamesExcludeCurrentDir: boolean
|
dirNamesExcludeCurrentDir: boolean
|
||||||
json: boolean
|
json: boolean
|
||||||
escapeJson: boolean
|
escapeJson: boolean
|
||||||
|
@ -125,9 +124,6 @@ export const getInputs = (): Inputs => {
|
||||||
const dirNamesMaxDepth = core.getInput('dir_names_max_depth', {
|
const dirNamesMaxDepth = core.getInput('dir_names_max_depth', {
|
||||||
required: false
|
required: false
|
||||||
})
|
})
|
||||||
const dirNamesExcludeRoot = core.getBooleanInput('dir_names_exclude_root', {
|
|
||||||
required: false
|
|
||||||
})
|
|
||||||
const dirNamesExcludeCurrentDir = core.getBooleanInput(
|
const dirNamesExcludeCurrentDir = core.getBooleanInput(
|
||||||
'dir_names_exclude_current_dir',
|
'dir_names_exclude_current_dir',
|
||||||
{
|
{
|
||||||
|
@ -191,7 +187,6 @@ export const getInputs = (): Inputs => {
|
||||||
oldNewFilesSeparator,
|
oldNewFilesSeparator,
|
||||||
// End Not Supported via REST API
|
// End Not Supported via REST API
|
||||||
dirNames,
|
dirNames,
|
||||||
dirNamesExcludeRoot,
|
|
||||||
dirNamesExcludeCurrentDir,
|
dirNamesExcludeCurrentDir,
|
||||||
json,
|
json,
|
||||||
escapeJson,
|
escapeJson,
|
||||||
|
|
Loading…
Add table
Reference in a new issue