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) 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 @bartoszj, @pbrooks, @armadsen
Returns The build number from the current repository

1 Example



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

To show the documentation in your terminal, run

fastlane action get_build_number_repository

View source code

Back to actions