Set the build number from the current repository

This action will set the build number according to what the SCM HEAD reports. Currently supported SCMs are svn (uses root revision), git-svn (uses svn revision) and git (uses short hash) and mercurial (uses short hash or revision number). There is an option, :use_hg_revision_number, which allows to use mercurial revision number instead of hash

Supported platforms ios, mac
Author @pbrooks, @armadsen, @AndrewSB

2 Examples

  xcodeproj: "./path/to/MyApp.xcodeproj"


Key Description Default
use_hg_revision_number Use hg revision number instead of hash (ignored for non-hg repos) false
xcodeproj explicitly specify which xcodeproj to use

* = default value is dependent on the user's system

To show the documentation in your terminal, run

fastlane action set_build_number_repository

View source code

Back to actions