Get the build number from the current repository

This action will get the build number according to what the SCM HEAD reports.
Currently supported SCMs are svn (uses root revision), git-svn (uses svn revision), 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 @bartoszj, @pbrooks, @armadsen
Returns The build number from the current repository

1 Example



Key Description Default
use_hg_revision_number Use hg revision number instead of hash (ignored for non-hg repos) false

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

To show the documentation in your terminal, run

fastlane action get_build_number_repository

View source code

Back to actions