Removed unused code
This commit is contained in:
parent
ff65504325
commit
060b3b9b03
@ -409,12 +409,6 @@ export const setOutputsAndGetModifiedAndChangedFilesStatus = async ({
|
|||||||
deletedFiles.count = newDeletedFilesPaths.length.toString()
|
deletedFiles.count = newDeletedFilesPaths.length.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
const deletedFilesPaths: string[] = getArrayFromPaths(
|
|
||||||
deletedFiles.paths,
|
|
||||||
inputs
|
|
||||||
)
|
|
||||||
const deletedFilesCount = deletedFilesPaths.length.toString()
|
|
||||||
|
|
||||||
await setOutput({
|
await setOutput({
|
||||||
key: getOutputKey('deleted_files', outputPrefix),
|
key: getOutputKey('deleted_files', outputPrefix),
|
||||||
value: deletedFiles.paths,
|
value: deletedFiles.paths,
|
||||||
@ -426,14 +420,14 @@ export const setOutputsAndGetModifiedAndChangedFilesStatus = async ({
|
|||||||
|
|
||||||
await setOutput({
|
await setOutput({
|
||||||
key: getOutputKey('deleted_files_count', outputPrefix),
|
key: getOutputKey('deleted_files_count', outputPrefix),
|
||||||
value: deletedFilesCount,
|
value: deletedFiles.count,
|
||||||
writeOutputFiles: inputs.writeOutputFiles,
|
writeOutputFiles: inputs.writeOutputFiles,
|
||||||
outputDir: inputs.outputDir
|
outputDir: inputs.outputDir
|
||||||
})
|
})
|
||||||
|
|
||||||
await setOutput({
|
await setOutput({
|
||||||
key: getOutputKey('any_deleted', outputPrefix),
|
key: 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
|
||||||
@ -450,6 +444,11 @@ export const setOutputsAndGetModifiedAndChangedFilesStatus = async ({
|
|||||||
inputs
|
inputs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const deletedFilesPaths: string[] = getArrayFromPaths(
|
||||||
|
deletedFiles.paths,
|
||||||
|
inputs
|
||||||
|
)
|
||||||
|
|
||||||
const otherDeletedFiles = allOtherDeletedFilesPaths.filter(
|
const otherDeletedFiles = allOtherDeletedFilesPaths.filter(
|
||||||
filePath => !deletedFilesPaths.includes(filePath)
|
filePath => !deletedFilesPaths.includes(filePath)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user