From 733f9fc1538b029fa04f219176907080b88c0638 Mon Sep 17 00:00:00 2001 From: GarryOne Date: Thu, 26 Mar 2020 23:27:22 +0200 Subject: [PATCH] Added console.log(process.env) --- dist/index.js | 4 +++- src/index.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index cfb540f..d59ff27 100755 --- a/dist/index.js +++ b/dist/index.js @@ -480,7 +480,9 @@ const commandExists = __webpack_require__(677); const nodeCmd = __webpack_require__(428); const nodeRsync = __webpack_require__(250); -const { REMOTE_HOST, REMOTE_USER, REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME, SOURCE, TARGET, ARGS, GITHUB_WORKSPACE, HOME } = process.env; +const vars = { REMOTE_HOST, REMOTE_USER, REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME, SOURCE, TARGET, ARGS, GITHUB_WORKSPACE, HOME } = process.env; + +console.log(vars); const sshDeploy = (() => { const rsync = ({ privateKey, port, src, dest, args }) => { diff --git a/src/index.js b/src/index.js index 8916c2b..c5cdc5b 100644 --- a/src/index.js +++ b/src/index.js @@ -5,7 +5,9 @@ const commandExists = require('command-exists'); const nodeCmd = require('node-cmd'); const nodeRsync = require('rsyncwrapper'); -const { REMOTE_HOST, REMOTE_USER, REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME, SOURCE, TARGET, ARGS, GITHUB_WORKSPACE, HOME } = process.env; +const vars = { REMOTE_HOST, REMOTE_USER, REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME, SOURCE, TARGET, ARGS, GITHUB_WORKSPACE, HOME } = process.env; + +console.log(vars); const sshDeploy = (() => { const rsync = ({ privateKey, port, src, dest, args }) => {