fix: add githubWorkspace as default source root
This commit is contained in:
parent
79363f2b74
commit
3ef66d0be9
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@ const githubWorkspace = process.env.GITHUB_WORKSPACE;
|
|||||||
const remoteUser = process.env.REMOTE_USER;
|
const remoteUser = process.env.REMOTE_USER;
|
||||||
|
|
||||||
const defaultInputs = {
|
const defaultInputs = {
|
||||||
source: './',
|
source: '',
|
||||||
target: `/home/${remoteUser}/`,
|
target: `/home/${remoteUser}/`,
|
||||||
exclude: '',
|
exclude: '',
|
||||||
args: '-rlgoDzvc -i',
|
args: '-rlgoDzvc -i',
|
||||||
@ -30,7 +30,7 @@ inputNames.forEach((input) => {
|
|||||||
// eslint-disable-next-line default-case
|
// eslint-disable-next-line default-case
|
||||||
switch (inputName) {
|
switch (inputName) {
|
||||||
case 'source':
|
case 'source':
|
||||||
extendedVal = validVal.indexOf(' ') > -1 ? validVal.split(' ') : (validVal || './');
|
extendedVal = validVal.split(' ').map((src) => `${githubWorkspace}/${src}`);
|
||||||
break;
|
break;
|
||||||
case 'args':
|
case 'args':
|
||||||
extendedVal = validVal.split(' ');
|
extendedVal = validVal.split(' ');
|
||||||
|
Loading…
Reference in New Issue
Block a user