Add a new function used to determine where to retrieve config from
This commit is contained in:
parent
f4cf65ca2d
commit
153a598a97
6 changed files with 40 additions and 2 deletions
8
lib/config-utils.js
generated
8
lib/config-utils.js
generated
|
|
@ -219,6 +219,14 @@ function initConfig() {
|
|||
}
|
||||
return config;
|
||||
}
|
||||
function isLocal(configPath) {
|
||||
// If the path starts with ./, look locally
|
||||
if (configPath.indexOf("./") === 0) {
|
||||
return true;
|
||||
}
|
||||
return (configPath.indexOf("@") === -1);
|
||||
}
|
||||
exports.isLocal = isLocal;
|
||||
function getConfigFolder() {
|
||||
return util.getRequiredEnvParam('RUNNER_TEMP');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue