stefanzweifel / git-auto-commit-action

Automatically commit and push changed files back to GitHub with this GitHub Action for the 80% use case.
MIT License
1.93k stars 224 forks source link

Fail if attempting to execute git commands in a directory that is not a git-repo. #326

Closed ccomendant closed 3 months ago

ccomendant commented 3 months ago

This patch explicitly aborts the execution of entrypoint.sh, if the action is executed outside a git-repo, i.e., a directory that doesn't itself contain a .git directory.

stefanzweifel commented 3 months ago

Thanks @ccomendant. Looks good to me. Will write a test for this and merge your PR soon.