Sha256: e204bedaa72c2154d41ab29ebd82eae9f5db3b9f32b334df03f8f20da8db057e

Contents?: true

Size: 647 Bytes

Versions: 8

Compression:

Stored size: 647 Bytes

Contents

module Fastlane
  module Actions
    # Adds a git tag to the current commit
    class AddGitTagAction
      def self.run(params)
        params = params.first

        grouping      = (params && params[:grouping]) || 'builds'
        prefix        = (params && params[:prefix]) || ''
        build_number  = (params && params[:build_number]) || Actions.lane_context[Actions::SharedValues::BUILD_NUMBER]
        
        lane_name     = Actions.lane_context[Actions::SharedValues::LANE_NAME]

        Actions.sh("git tag #{grouping}/#{lane_name}/#{prefix}#{build_number}")

        Helper.log.info 'Added git tag 🎯.'
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fastlane-0.5.0 lib/fastlane/actions/add_git_tag.rb
fastlane-0.4.2 lib/fastlane/actions/add_git_tag.rb
fastlane-0.4.1 lib/fastlane/actions/add_git_tag.rb
fastlane-0.4.0 lib/fastlane/actions/add_git_tag.rb
fastlane-0.3.0 lib/fastlane/actions/add_git_tag.rb
fastlane-0.2.1 lib/fastlane/actions/add_git_tag.rb
fastlane-0.2.0 lib/fastlane/actions/add_git_tag.rb
fastlane-0.1.19 lib/fastlane/actions/add_git_tag.rb