Class: Fastlane::Actions::IosFinalTagAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



55
56
57
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb', line 55

def self.authors
  ['Automattic']
end

.available_optionsObject



30
31
32
33
34
35
36
37
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb', line 30

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :version,
                                 env_name: 'FL_IOS_FINAL_TAG_VERSION',
                                 description: 'The version of the release to finalize',
                                 type: String),
  ]
end

.categoryObject



45
46
47
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb', line 45

def self.category
  :deprecated
end

.deprecated_notesObject



49
50
51
52
53
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb', line 49

def self.deprecated_notes
  "This action is deprecated as we don't believe it's currently in use in our projects.
  However, just to be sure that it's not in use, we decided to deprecate it first. If you
  believe that this is a mistake, please let us know on Slack."
end

.descriptionObject



22
23
24
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb', line 22

def self.description
  '(DEPRECATED) Finalize a relasae'
end

.detailsObject



26
27
28
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb', line 26

def self.details
  '(DEPRECATED) Removes the temp tags and pushes the final one'
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


59
60
61
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb', line 59

def self.is_supported?(platform)
  [:ios, :mac].include?(platform)
end

.outputObject



39
40
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb', line 39

def self.output
end

.return_valueObject



42
43
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb', line 42

def self.return_value
end

.run(params) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb', line 4

def self.run(params)
  return unless UI.confirm("#{deprecated_notes} Would you like to continue with the action?")

  require_relative '../../helper/ios/ios_git_helper'
  require_relative '../../helper/ios/ios_version_helper'
  version = Fastlane::Helper::Ios::VersionHelper.get_public_version

  UI.message("Tagging final #{version}...")

  Fastlane::Helper::GitHelper.create_tag(version)

  other_action.ios_clear_intermediate_tags(version: version)
end