1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

Feat: Only try deleting files that were created by the action

This commit is contained in:
Bertrand Caron 2024-10-10 16:15:48 +10:00
parent d4fffb5087
commit 2e8374f437
No known key found for this signature in database
GPG key ID: 347191E3D3A5C62D

View file

@ -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);