class Fastlane::Actions::GetGitBuildNumberAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/git_build_versioning/actions/get_git_build_number_action.rb, line 35 def self.available_options [ FastlaneCore::ConfigItem.new(key: :tag_prefix, env_name: "GIT_BUILD_VERSIONING_TAG_PREFIX", description: "A prefix to be used with tag names", optional: true, type: String) ] end
description()
click to toggle source
# File lib/fastlane/plugin/git_build_versioning/actions/get_git_build_number_action.rb, line 12 def self.description "Use git for tagging your builds for unique distributed sequential build numbers" end
details()
click to toggle source
# File lib/fastlane/plugin/git_build_versioning/actions/get_git_build_number_action.rb, line 30 def self.details <<-DETAILS DETAILS end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/git_build_versioning/actions/get_git_build_number_action.rb, line 45 def self.is_supported?(platform) # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example) # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform # # [:ios, :mac, :android].include?(platform) [:ios, :mac].include?(platform) end
output()
click to toggle source
# File lib/fastlane/plugin/git_build_versioning/actions/get_git_build_number_action.rb, line 16 def self.output [ ['GIT_BUILD_NUMBER', 'The build number from git'] ] end
return_value()
click to toggle source
# File lib/fastlane/plugin/git_build_versioning/actions/get_git_build_number_action.rb, line 26 def self.return_value # If your method provides a return value, you can describe here what it does end
run(params)
click to toggle source
# File lib/fastlane/plugin/git_build_versioning/actions/get_git_build_number_action.rb, line 7 def self.run(params) tag_prefix = (params[:tag_prefix] || 'build/') Helper::GitBuildVersioningHelper.current_build_number(tag_prefix) end