run git directly, not in a superfluous bash shell

Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
This commit is contained in:
Sebastian Kuzminsky 2022-11-08 09:08:21 -07:00 committed by GitHub
parent 0181a8bea4
commit 512b3e3e44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,8 +159,7 @@ async function main() {
await exec.exec("docker", [
"exec",
container,
"bash", "-c",
"git config --global --add safe.directory ${PWD}"
"git", "config", "--global", "--add", "safe.directory", sourceDirectory
])
core.endGroup()