Sha256: 469b51c81205453b00ddbeaacf61dfedc3b737a2a50b357e400f9010b5667228
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 Bytes
Contents
module Fastlane module Actions # Adds a git tag to the current commit class AddGitTagAction def self.run(params) params = params.first specified_tag = (params && params[:tag]) 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] tag = specified_tag || "#{grouping}/#{lane_name}/#{prefix}#{build_number}" Helper.log.info 'Adding git tag "#{tag}" 🎯.' Actions.sh("git tag #{tag}") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastlane-0.6.1 | lib/fastlane/actions/add_git_tag.rb |
fastlane-0.6.0 | lib/fastlane/actions/add_git_tag.rb |