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()
|
||||
}
|
||||
|
||||
const deletedFilesPaths: string[] = getArrayFromPaths(
|
||||
deletedFiles.paths,
|
||||
inputs
|
||||
)
|
||||
const deletedFilesCount = deletedFilesPaths.length.toString()
|
||||
|
||||
await setOutput({
|
||||
key: getOutputKey('deleted_files', outputPrefix),
|
||||
value: deletedFiles.paths,
|
||||
@ -426,14 +420,14 @@ export const setOutputsAndGetModifiedAndChangedFilesStatus = async ({
|
||||
|
||||
await setOutput({
|
||||
key: getOutputKey('deleted_files_count', outputPrefix),
|
||||
value: deletedFilesCount,
|
||||
value: deletedFiles.count,
|
||||
writeOutputFiles: inputs.writeOutputFiles,
|
||||
outputDir: inputs.outputDir
|
||||
})
|
||||
|
||||
await setOutput({
|
||||
key: getOutputKey('any_deleted', outputPrefix),
|
||||
value: deletedFilesPaths.length > 0 && filePatterns.length > 0,
|
||||
value: deletedFiles.paths.length > 0 && filePatterns.length > 0,
|
||||
writeOutputFiles: inputs.writeOutputFiles,
|
||||
outputDir: inputs.outputDir,
|
||||
json: inputs.json
|
||||
@ -450,6 +444,11 @@ export const setOutputsAndGetModifiedAndChangedFilesStatus = async ({
|
||||
inputs
|
||||
)
|
||||
|
||||
const deletedFilesPaths: string[] = getArrayFromPaths(
|
||||
deletedFiles.paths,
|
||||
inputs
|
||||
)
|
||||
|
||||
const otherDeletedFiles = allOtherDeletedFilesPaths.filter(
|
||||
filePath => !deletedFilesPaths.includes(filePath)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user