diff --git a/post.js b/post.js index 400221d..b5441ba 100644 --- a/post.js +++ b/post.js @@ -8,10 +8,14 @@ function rm(file) { async function main() { try { + const directory = core.getState("directory") const keyFile = core.getState("keyFile") const inventoryFile = core.getState("inventoryFile") const vaultPasswordFile = core.getState("vaultPasswordFile") + if (directory) + process.chdir(directory) + if (keyFile) rm(keyFile)