[build] rebuild

This commit is contained in:
Dragan Filipovic 2020-07-01 00:54:42 +02:00
parent 14eb503e62
commit 073bd0b6f6

22
dist/index.js vendored
View File

@ -551,6 +551,24 @@ module.exports = {
module.exports = require("path"); module.exports = require("path");
/***/ }),
/***/ 659:
/***/ (function(module) {
const inputNames = ['REMOTE_HOST', 'REMOTE_USER', 'REMOTE_PORT', 'SSH_PRIVATE_KEY', 'DEPLOY_KEY_NAME', 'SOURCE', 'TARGET', 'ARGS'];
const inputs = {
GITHUB_WORKSPACE: process.env.GITHUB_WORKSPACE
};
// Get inputs from ENV or WITH workflow settings
inputNames.forEach((input) => {
inputs[input] = process.env[input] || process.env[`INPUT_${input}`];
});
module.exports = inputs;
/***/ }), /***/ }),
/***/ 669: /***/ 669:
@ -573,7 +591,7 @@ const {
REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME, REMOTE_PORT, SSH_PRIVATE_KEY, DEPLOY_KEY_NAME,
SOURCE, TARGET, ARGS, SOURCE, TARGET, ARGS,
GITHUB_WORKSPACE GITHUB_WORKSPACE
} = process.env; } = __webpack_require__(659);
const defaultOptions = { const defaultOptions = {
ssh: true, ssh: true,
@ -626,7 +644,7 @@ const run = () => {
validateInputs({ SSH_PRIVATE_KEY, REMOTE_HOST, REMOTE_USER }); validateInputs({ SSH_PRIVATE_KEY, REMOTE_HOST, REMOTE_USER });
sshDeploy.init({ sshDeploy.init({
src: `${GITHUB_WORKSPACE}/${SOURCE}` || '', src: `${GITHUB_WORKSPACE}/${SOURCE || ''}`,
dest: TARGET || `/home/${REMOTE_USER}/`, dest: TARGET || `/home/${REMOTE_USER}/`,
args: ARGS ? [ARGS] : ['-rltgoDzvO'], args: ARGS ? [ARGS] : ['-rltgoDzvO'],
host: REMOTE_HOST, host: REMOTE_HOST,