From 62a23f82b163be6455968457151fa0094ec92a63 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 22 Sep 2023 11:05:42 -0600 Subject: [PATCH] Updated debug message --- src/changedFilesOutput.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/changedFilesOutput.ts b/src/changedFilesOutput.ts index d9ae6784..2d4cc2de 100644 --- a/src/changedFilesOutput.ts +++ b/src/changedFilesOutput.ts @@ -399,7 +399,10 @@ export const setOutputsAndGetModifiedAndChangedFilesStatus = async ({ ) { const newDeletedFilesPaths: string[] = [] for (const deletedPath of getArrayFromPaths(deletedFiles.paths, inputs)) { - if (!(await exists(path.join(workingDirectory, deletedPath)))) { + const dirPath = path.join(workingDirectory, deletedPath) + core.debug(`Checking if directory exists: ${dirPath}`) + if (!(await exists(dirPath))) { + core.debug(`Directory not found: ${dirPath}`) newDeletedFilesPaths.push(deletedPath) } } @@ -407,6 +410,7 @@ export const setOutputsAndGetModifiedAndChangedFilesStatus = async ({ ? newDeletedFilesPaths : newDeletedFilesPaths.join(inputs.separator) deletedFiles.count = newDeletedFilesPaths.length.toString() + core.debug(`New deleted files: ${JSON.stringify(deletedFiles)}`) } await setOutput({