From 1f5de2381e708769b9a0074bed8f1cfcedcb33a3 Mon Sep 17 00:00:00 2001 From: Adam Rogas Date: Fri, 4 Dec 2020 17:09:25 -0800 Subject: [PATCH 1/2] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7ee6fe7..3d6a93f 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const fs = require('fs'); try { - const home = process.env['HOME']; + const home = core.getInput('home-dir') ? core.getInput('home-dir') : process.env['HOME']; const homeSsh = home + '/.ssh'; const privateKey = core.getInput('ssh-private-key'); From f1e25145c05ac4503ae955e26cb662d87b4d7762 Mon Sep 17 00:00:00 2001 From: Adam Rogas Date: Fri, 4 Dec 2020 17:10:36 -0800 Subject: [PATCH 2/2] Update action.yml --- action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.yml b/action.yml index e43c44f..36546cf 100644 --- a/action.yml +++ b/action.yml @@ -6,6 +6,8 @@ inputs: required: true ssh-auth-sock: description: 'Where to place the SSH Agent auth socket' + home-dir: + description: 'Explicit home directory' runs: using: 'node12' main: 'dist/index.js'