Sha256: dbd13921c5f26bf057524a74b4897d92cb0c1625a98de56a1ade41b8ce7b763c
Contents?: true
Size: 1.83 KB
Versions: 439
Compression:
Stored size: 1.83 KB
Contents
module Fastlane module Actions class PushGitTagsAction < Action def self.run(params) command = [ 'git', 'push', '--tags' ] # optionally add the force component command << '--force' if params[:force] # optionally add the remote component command << params[:remote] if params[:remote] result = Actions.sh(command.join(' ')) UI.success('Tags pushed to remote') result end ##################################################### # @!group Documentation ##################################################### def self.description "Push local tags to the remote - this will only push tags" end def self.available_options [ FastlaneCore::ConfigItem.new(key: :force, env_name: "FL_PUSH_GIT_FORCE", description: "Force push to remote. Defaults to false", is_string: false, default_value: false, optional: true), FastlaneCore::ConfigItem.new(key: :remote, env_name: "FL_GIT_PUSH_REMOTE", description: "The remote to push tags to", optional: true) ] end def self.author ['vittoriom'] end def self.details "If you only want to push the tags and nothing else, you can use the `push_git_tags` action" end def self.is_supported?(platform) true end def self.example_code [ 'push_git_tags' ] end def self.category :source_control end end end end
Version data entries
439 entries across 439 versions & 1 rubygems