diff --git a/dist/index.js b/dist/index.js index e44c2c4..8e6be86 100644 --- a/dist/index.js +++ b/dist/index.js @@ -32895,7 +32895,7 @@ let config = { }; let options = { - dryRun: core.getInput('dryRun'), // Enable dry-run mode. Default to false + dryRun: JSON.parse(core.getInput('dryRun')), // Enable dry-run mode. Default to false excludeMode: 'remove', // Behavior for excluded files ('remove' or 'ignore'), Default to 'remove'. forceUpload: false // Force uploading all files, Default to false(upload only newer files). }; diff --git a/sftp.js b/sftp.js index 7b2f7a7..eda30d1 100644 --- a/sftp.js +++ b/sftp.js @@ -17,7 +17,7 @@ let config = { }; let options = { - dryRun: core.getInput('dryRun'), // Enable dry-run mode. Default to false + dryRun: JSON.parse(core.getInput('dryRun')), // Enable dry-run mode. Default to false excludeMode: 'remove', // Behavior for excluded files ('remove' or 'ignore'), Default to 'remove'. forceUpload: false // Force uploading all files, Default to false(upload only newer files). };