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');