ensure_git_branch¶
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, soensure_git_branch
will stop a lane if it was accidentally executed on an incorrect branch.
ensure_git_branch | |
---|---|
Supported platforms | ios, android, mac |
Author | @dbachrach, @Liquidsoul |
2 Examples¶
ensure_git_branch # defaults to `master` branch
ensure_git_branch(
branch: 'develop'
)
Parameters¶
Key | Description | Default |
---|---|---|
branch |
The branch that should be checked for. String that can be either the full name of the branch or a regex to match | master |
* = default value is dependent on the user's system
To show the documentation in your terminal, run
fastlane action ensure_git_branch