Skip to content
Snippets Groups Projects
Commit e212093a authored by DJ Madeira's avatar DJ Madeira Committed by Rhys Arkins
Browse files

fix: find config path in cwd when installed globally (#1277)

Fixes #1182 
parent d2f54ba7
Branches
Tags 28.23.2
No related merge requests found
......@@ -7,7 +7,7 @@ module.exports = {
function getConfig(env) {
let configFile = env.RENOVATE_CONFIG_FILE || 'config';
if (!path.isAbsolute(configFile)) {
configFile = `../../${configFile}`;
configFile = `${process.cwd()}/${configFile}`;
}
let config = {};
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment