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

keep_ssh_dir is optional...

This commit is contained in:
shimataro 2023-10-09 18:39:56 +09:00
parent 4f9c73a958
commit dfd8f832aa
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
2 changed files with 2 additions and 2 deletions

View file

@ -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()) {

View file

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