From 30f1ccbb4c0d9cba03eddd705e72f1a8f3a67710 Mon Sep 17 00:00:00 2001 From: Owen Jaques Date: Thu, 10 Dec 2020 14:32:21 -0800 Subject: [PATCH] Added home equivalent for windows --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 173d8ea..0eb21fe 100644 --- a/dist/index.js +++ b/dist/index.js @@ -121,7 +121,7 @@ const fs = __webpack_require__(747); try { - const home = process.env['HOME']; + const home = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME']; const homeSsh = home + '/.ssh'; const privateKey = core.getInput('ssh-private-key');