I use the [git\_commit action](https://docs.fastlane.tools/actions/git_commit/):

> 
> git\_commit(path: "\*", message: "message")
> 
> 
> 

This action fails if there is nothing to commit. How can I continue executing my Fastlane script even if there is nothing to commit?

What I'm looking for could be accomplished with the any of the two options:

1. Add some parameter to the `git_commit` action so it would not crash the script if there is nothing to commit (but rather, continue)
2. Check if there are any changes and only then invoke `git_commit`.

I didn't find any way to get this done using method 1, so **I'm looking for an implementation with the second approach.**