mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2024-04-28 00:37:18 +08:00
12 lines
384 B
JavaScript
12 lines
384 B
JavaScript
|
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;
|