Skip to content

Commit baaada2

Browse files
committed
Try and fix the git root path not working
1 parent ca64d00 commit baaada2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/actions/src/info/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ async function findPackages(directory: string, maxDepth?: number) {
6666
}
6767

6868
async function main() {
69-
const { stdout } = await getExecOutput('git', ['rev-parse', '--show-toplevel']);
70-
const gitRoot = stdout.trim();
69+
const gitRoot = pathlib.resolve(process.cwd());
7170

7271
core.info(`git root is ${gitRoot}`);
7372

0 commit comments

Comments
 (0)