import_from_git¶
Import another Fastfile from a remote git repository to use its lanes
This is useful if you have shared lanes across multiple apps and you want to store the Fastfile in a remote git repository.
import_from_git | |
---|---|
Supported platforms | ios, android, mac |
Author | @fabiomassimo, @KrauseFx, @Liquidsoul |
2 Examples¶
import_from_git(
url: "git@github.com:fastlane/fastlane.git", # The URL of the repository to import the Fastfile from.
branch: "HEAD", # The branch to checkout on the repository
path: "fastlane/Fastfile", # The path of the Fastfile in the repository
version: "~> 1.0.0" # The version to checkout on the repository. Optimistic match operator can be used to select the latest version within constraints.
)
import_from_git(
url: "git@github.com:fastlane/fastlane.git", # The URL of the repository to import the Fastfile from.
branch: "HEAD", # The branch to checkout on the repository
path: "fastlane/Fastfile", # The path of the Fastfile in the repository
version: [">= 1.1.0", "< 2.0.0"] # The version to checkout on the repository. Multiple conditions can be used to select the latest version within constraints.
)
Parameters¶
Key | Description | Default |
---|---|---|
url |
The URL of the repository to import the Fastfile from | |
branch |
The branch or tag to check-out on the repository | HEAD |
path |
The path of the Fastfile in the repository | fastlane/Fastfile |
version |
The version to checkout on the respository. Optimistic match operator or multiple conditions can be used to select the latest version within constraints |
* = default value is dependent on the user's system
To show the documentation in your terminal, run
fastlane action import_from_git