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_branch will stop a lane if it was accidentally executed on an incorrect branch.

Supported platforms ios, android, mac
Author @dbachrach, @Liquidsoul

2 Examples

ensure_git_branch # defaults to `master` branch
  branch: 'develop'


Key Description
branch The branch that should be checked for. String that can be either the full name of the branch or a regex to match

To show the documentation in your terminal, run

fastlane action ensure_git_branch

View source code

Back to actions