fix: remove warning with detecting the local git repository when using Github's REST API (#2002)

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Tonye Jack 2024-03-20 13:20:51 -06:00 committed by GitHub
parent 02768050b1
commit 077b23f6a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 10 deletions

3
dist/index.js generated vendored
View File

@ -2462,9 +2462,6 @@ const isInsideWorkTree = (_0) => __awaiter(void 0, [_0], void 0, function* ({ cw
ignoreReturnCode: true,
silent: !core.isDebug()
});
if (stdout.trim() !== 'true') {
core.warning(`The current working directory is not inside a git repository: ${cwd}`);
}
return stdout.trim() === 'true';
});
exports.isInsideWorkTree = isInsideWorkTree;

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -680,12 +680,6 @@ export const isInsideWorkTree = async ({
}
)
if (stdout.trim() !== 'true') {
core.warning(
`The current working directory is not inside a git repository: ${cwd}`
)
}
return stdout.trim() === 'true'
}