From dfd8f832aacb59cff3a7a81205b65eb44ecc835d Mon Sep 17 00:00:00 2001 From: shimataro Date: Mon, 9 Oct 2023 18:39:56 +0900 Subject: [PATCH] `keep_ssh_dir` is optional... --- lib/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 7f9f21b..196de56 100644 --- a/lib/index.js +++ b/lib/index.js @@ -2951,7 +2951,7 @@ function shouldCreateKeyFile(keyFilePath, ifKeyExists) { */ function shouldRemoveSshDirectory() { const keepsSshDir = core.getInput("keep_ssh_dir", { - required: true, + required: false, }); // empty string or falsy value in YAML switch (keepsSshDir.toLowerCase()) { diff --git a/src/main.ts b/src/main.ts index d78eb5e..ab590e9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -246,7 +246,7 @@ function shouldCreateKeyFile(keyFilePath: string, ifKeyExists: string): boolean */ function shouldRemoveSshDirectory(): boolean { const keepsSshDir = core.getInput("keep_ssh_dir", { - required: true, + required: false, }); // empty string or falsy value in YAML