Raises an exception if not on a specific git branch
This action will check if your git repo is checked out to a specific branch.
You may only want to make releases from a specific branch, so
ensure_git_branchwill stop a lane if it was accidentally executed on an incorrect branch.
|Supported platforms||ios, android, mac|
ensure_git_branch # defaults to `master` branch
ensure_git_branch( branch: 'develop' )
||The branch that should be checked for. String that can be either the full name of the branch or a regex to match||
* = default value is dependent on the user's system
To show the documentation in your terminal, run
fastlane action ensure_git_branch