git_branch
Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.
Supported Platforms: ios, android, mac
Returns the name of the current git branch, possibly as managed by CI ENV vars
Details
If no branch could be found, this action will return an empty string. If FL_GIT_BRANCH_DONT_USE_ENV_VARS is true, it’ll ignore CI ENV vars. This is a wrapper for the internal action Actions.git_branch
Parameters & Options
This action takes no parameters or options.
Lane Context Shared Values
This action writes the following values to Actions.lane_context[SharedValues::...]:
| Key | Description |
|---|---|
SharedValues::GIT_BRANCH_ENV_VARS |
The git branch environment variables |
Examples
git_branchSource & Upstream
- Gem Action:
git_branch.rb - Upstream Source: Inspect Ruby Implementation on GitHub
- Authors:
KrauseFx