Skip to content

Commit 077b23f

Browse files
fix: remove warning with detecting the local git repository when using Github's REST API (#2002)
Co-authored-by: GitHub Action <[email protected]>
1 parent 0276805 commit 077b23f

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

dist/index.js

-3
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/utils.ts

-6
Original file line numberDiff line numberDiff line change
@@ -680,12 +680,6 @@ export const isInsideWorkTree = async ({
680680
}
681681
)
682682

683-
if (stdout.trim() !== 'true') {
684-
core.warning(
685-
`The current working directory is not inside a git repository: ${cwd}`
686-
)
687-
}
688-
689683
return stdout.trim() === 'true'
690684
}
691685

0 commit comments

Comments
 (0)