New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't fail when missing git #260
Comments
Thanks for reporting! Will add this in the upcoming days. |
After manually installing git just before running this action. I get the following error. (src) /usr/bin/docker exec af011818fd5442280ae04551d713f43af5ca547e518cc81ce1c146d5fded6e68 sh -c "cat /etc/*release | grep ^ID"
Started: bash /__w/_actions/stefanzweifel/git-auto-commit-action/v4/entrypoint.sh
INPUT_REPOSITORY value: .
INPUT_STATUS_OPTIONS:
INPUT_FILE_PATTERN: build/*.js
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Working tree clean. Nothing to commit. Because there wasn't any git in the container. The |
I've updated the Action to check if git is available at the very beginning of the execution flow (#261). This should hopefully also cover the behaviour you mentioned. A new version has been tagged. If you've been using Thanks again for reporting this issue and helping making this action a bit better. |
Thanks for the fix! |
git-auto-commit Version
V4
Machine Type
Ubuntu (eg. ubuntu-latest)
Bug description
I am using the
container
option of GH actions. My container doesn't have git installed. So your script tries to call git, but it doesn't exist.I would expect your action would fail in that case. But it doesn't. It just exits with success.
Steps to reproduce
Use the container option of a job in GH actions in combination with a container without git installed.
Tried solutions
Temporary workaround is just to install git manually.
Example Workflow
Relevant log output
The text was updated successfully, but these errors were encountered: