update_fastlane
Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.
Supported Platforms: ios, android, mac
Makes sure fastlane-tools are up-to-date when running fastlane
Details
This action will update fastlane to the most recent version - major version updates will not be performed automatically, as they might include breaking changes. If an update was performed, fastlane will be restarted before the run continues.
If you are using rbenv or rvm, everything should be good to go. However, if you are using the system’s default ruby, some additional setup is needed for this action to work correctly. In short, fastlane needs to be able to access your gem library without running in sudo mode.
The simplest possible fix for this is putting the following lines into your ~/.bashrc or ~/.zshrc file:|
|
export GEM_HOME=~/.gems|export PATH=$PATH:~/.gems/bin|| After the above changes, restart your terminal, then run
mkdir $GEM_HOMEto create the new gem directory. After this, you’re good to go!
Recommended usage of the update_fastlane action is at the top inside of the before_all block, before running any other action.
When fastlane runs with Bundler (bundle exec fastlane), this action does nothing: run bundle update fastlane instead.
Parameters & Options
Total options available: 2
| Key | Type | Env Variable | Default | Required | Description |
|---|---|---|---|---|---|
no_update |
Fastlane::Boolean |
FL_NO_UPDATE |
false |
Yes | Don’t update during this run. This is used internally |
nightly |
Fastlane::Boolean |
FL_UPDATE_FASTLANE_NIGHTLY |
false |
No | DEPRECATED! Nightly builds are no longer being made available - Opt-in to install and use nightly fastlane builds |
Examples
before_all do update_fastlane # ...endSource & Upstream
- Gem Action:
update_fastlane.rb - Upstream Source: Inspect Ruby Implementation on GitHub
- Authors:
milch,KrauseFx