Added missing changes and modified dist assets.
This commit is contained in:
parent
060b3b9b03
commit
2398551415
7
dist/index.js
generated
vendored
7
dist/index.js
generated
vendored
@ -758,8 +758,6 @@ const setOutputsAndGetModifiedAndChangedFilesStatus = ({ allDiffFiles, allFilter
|
|||||||
: newDeletedFilesPaths.join(inputs.separator);
|
: newDeletedFilesPaths.join(inputs.separator);
|
||||||
deletedFiles.count = newDeletedFilesPaths.length.toString();
|
deletedFiles.count = newDeletedFilesPaths.length.toString();
|
||||||
}
|
}
|
||||||
const deletedFilesPaths = getArrayFromPaths(deletedFiles.paths, inputs);
|
|
||||||
const deletedFilesCount = deletedFilesPaths.length.toString();
|
|
||||||
yield (0, utils_1.setOutput)({
|
yield (0, utils_1.setOutput)({
|
||||||
key: (0, utils_1.getOutputKey)('deleted_files', outputPrefix),
|
key: (0, utils_1.getOutputKey)('deleted_files', outputPrefix),
|
||||||
value: deletedFiles.paths,
|
value: deletedFiles.paths,
|
||||||
@ -770,13 +768,13 @@ const setOutputsAndGetModifiedAndChangedFilesStatus = ({ allDiffFiles, allFilter
|
|||||||
});
|
});
|
||||||
yield (0, utils_1.setOutput)({
|
yield (0, utils_1.setOutput)({
|
||||||
key: (0, utils_1.getOutputKey)('deleted_files_count', outputPrefix),
|
key: (0, utils_1.getOutputKey)('deleted_files_count', outputPrefix),
|
||||||
value: deletedFilesCount,
|
value: deletedFiles.count,
|
||||||
writeOutputFiles: inputs.writeOutputFiles,
|
writeOutputFiles: inputs.writeOutputFiles,
|
||||||
outputDir: inputs.outputDir
|
outputDir: inputs.outputDir
|
||||||
});
|
});
|
||||||
yield (0, utils_1.setOutput)({
|
yield (0, utils_1.setOutput)({
|
||||||
key: (0, utils_1.getOutputKey)('any_deleted', outputPrefix),
|
key: (0, utils_1.getOutputKey)('any_deleted', outputPrefix),
|
||||||
value: deletedFilesPaths.length > 0 && filePatterns.length > 0,
|
value: deletedFiles.paths.length > 0 && filePatterns.length > 0,
|
||||||
writeOutputFiles: inputs.writeOutputFiles,
|
writeOutputFiles: inputs.writeOutputFiles,
|
||||||
outputDir: inputs.outputDir,
|
outputDir: inputs.outputDir,
|
||||||
json: inputs.json
|
json: inputs.json
|
||||||
@ -787,6 +785,7 @@ const setOutputsAndGetModifiedAndChangedFilesStatus = ({ allDiffFiles, allFilter
|
|||||||
changeTypes: [changedFiles_1.ChangeTypeEnum.Deleted]
|
changeTypes: [changedFiles_1.ChangeTypeEnum.Deleted]
|
||||||
});
|
});
|
||||||
const allOtherDeletedFilesPaths = getArrayFromPaths(allOtherDeletedFiles.paths, inputs);
|
const allOtherDeletedFilesPaths = getArrayFromPaths(allOtherDeletedFiles.paths, inputs);
|
||||||
|
const deletedFilesPaths = getArrayFromPaths(deletedFiles.paths, inputs);
|
||||||
const otherDeletedFiles = allOtherDeletedFilesPaths.filter(filePath => !deletedFilesPaths.includes(filePath));
|
const otherDeletedFiles = allOtherDeletedFilesPaths.filter(filePath => !deletedFilesPaths.includes(filePath));
|
||||||
const onlyDeleted = otherDeletedFiles.length === 0 &&
|
const onlyDeleted = otherDeletedFiles.length === 0 &&
|
||||||
deletedFiles.paths.length > 0 &&
|
deletedFiles.paths.length > 0 &&
|
||||||
|
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
Loading…
x
Reference in New Issue
Block a user