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:
parent
d4fffb5087
commit
2e8374f437
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue