Skip to content

Commit f467e3d

Browse files
authored
add more logging
1 parent 68e49ea commit f467e3d

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

dist/index.js

+14-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,22 @@ import { IConfig } from './interfaces/IConfig';
99

1010
const getWorkspacePath = (configFilePath: string) => {
1111
const rootPath = core.getInput('workspace');
12+
console.log(`rootPath variable: ${rootPath}`);
1213
if (!rootPath) {
1314
return;
1415
}
1516

17+
console.log(`join the workspace path`);
18+
1619
return path.join(rootPath, configFilePath);
1720
}
1821

1922
export const getConfigs = (configFilePath: string): IConfig[] => {
20-
const rootPath = getWorkspacePath(configFilePath) ?? path.join(PROJECT_ROOT, configFilePath);
21-
const configs = require(rootPath);
23+
const configPath = getWorkspacePath(configFilePath) ?? path.join(PROJECT_ROOT, configFilePath);
24+
25+
console.log(`config path: "${configPath}"`);
26+
27+
const configs = require(configPath);
2228

2329
return configs;
2430
};

0 commit comments

Comments
 (0)