Sha256: 86bcd6d2794bba89213e8494928598f4a3a5140a8ffd52c4b923a1c065c5a1d1
Contents?: true
Size: 1.34 KB
Versions: 40
Compression:
Stored size: 1.34 KB
Contents
module Fastlane module Actions module SharedValues end class SetBuildNumberRepositoryAction < Action def self.is_supported?(platform) [:ios, :mac].include? platform end def self.run(params) build_number = Fastlane::Actions::GetBuildNumberRepositoryAction.run( use_hg_revision_number: params[:use_hg_revision_number] ) Fastlane::Actions::IncrementBuildNumberAction.run(build_number: build_number) end ##################################################### # @!group Documentation ##################################################### def self.description "Set the build number from the current repository" end def self.available_options [ FastlaneCore::ConfigItem.new(key: :use_hg_revision_number, env_name: "USE_HG_REVISION_NUMBER", description: "Use hg revision number instead of hash (ignored for non-hg repos)", optional: true, is_string: false, default_value: false) ] end def self.output [ ] end def self.authors ["pbrooks", "armadsen"] end end end end
Version data entries
40 entries across 40 versions & 1 rubygems