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
|
|
@ -250,6 +250,15 @@ function initConfig(): Config {
|
|||
return config;
|
||||
}
|
||||
|
||||
export function isLocal(configPath: string): boolean {
|
||||
// If the path starts with ./, look locally
|
||||
if (configPath.indexOf("./") === 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return (configPath.indexOf("@") === -1);
|
||||
}
|
||||
|
||||
function getConfigFolder(): string {
|
||||
return util.getRequiredEnvParam('RUNNER_TEMP');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue