GitHub FTP-Deploy-Action error

I set up on my repo, but it pushes successfully at random, and fails at random. The error that it shows when it fails is this:

Error: The process ‘/usr/bin/git’ failed with exit code 5


I noticed an earlier reported issue ticket (SamKirkland/FTP-Deploy-Action#87) for the same issue on the repository of action.

You can follow this issue ticket and add your commits to it.