From 2e8374f437aa22bd5702967f0e2cdc2302addd90 Mon Sep 17 00:00:00 2001 From: Bertrand Caron Date: Thu, 10 Oct 2024 16:15:48 +1000 Subject: [PATCH] Feat: Only try deleting files that were created by the action --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 158327d..bef52e3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -56,7 +56,9 @@ export function main(): void { } fs.writeFileSync(pathName, file.contents, file.options); - createdFileNames.push(file.name); + if (file.mustNotExist === true) { + createdFileNames.push(file.name); + } } common.saveCreatedFileNames(createdFileNames);