From 0fb307eb417bea0fa8bbcc83cbfda60b0f2aa0fe Mon Sep 17 00:00:00 2001 From: Dragan Filipovic Date: Tue, 21 Feb 2023 14:43:52 +0100 Subject: [PATCH] [e2e] log default values --- src/inputs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/inputs.js b/src/inputs.js index 0aa9aba..31f2d3f 100644 --- a/src/inputs.js +++ b/src/inputs.js @@ -7,7 +7,7 @@ const inputNames = [ 'SCRIPT_BEFORE', 'SCRIPT_AFTER']; const githubWorkspace = process.env.GITHUB_WORKSPACE; -const remoteUser = process.env.REMOTE_USER; +const remoteUser = process.env.REMOTE_USER || process.env.INPUT_REMOTE_USER; const defaultInputs = { source: '', @@ -18,6 +18,8 @@ const defaultInputs = { deployKeyName: `deploy_key_${remoteUser}_${Date.now()}` }; +console.log('[DEFAULTS] default inputs', defaultInputs); + const inputs = { githubWorkspace };