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,8 +56,10 @@ export function main(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.writeFileSync(pathName, file.contents, file.options);
|
fs.writeFileSync(pathName, file.contents, file.options);
|
||||||
|
if (file.mustNotExist === true) {
|
||||||
createdFileNames.push(file.name);
|
createdFileNames.push(file.name);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
common.saveCreatedFileNames(createdFileNames);
|
common.saveCreatedFileNames(createdFileNames);
|
||||||
|
|
||||||
if (createdFileNames.length > 0) {
|
if (createdFileNames.length > 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue