Lane: add_git_tagopen in new window

Description

This will add an annotated git tag to the current branch

Usage

Update your Fastfile to contain the following code:

add_git_tag # simple tag with default values
1

get_build_number # Get the build number of your project
get_version_number # Get the version number of your project

version_number =  lane_context[SharedValues::VERSION_NUMBER]
build_number =    lane_context[SharedValues::BUILD_NUMBER]

add_git_tag(
  tag: "#{version_number}_(#{build_number})"
)
1
2
3
4
5
6
7
8
9
10

Lane Parameters

KeyDescription
tagDefine your own tag text. This will replace all other parameters
groupingIs used to keep your tags organised under one 'folder'. Defaults to 'builds'
prefixAnything you want to put in front of the version number (e.g. 'v')
build_numberThe build number. Defaults to the result of increment_build_number if you're using it
messageThe tag message. Defaults to the tag's name
commitThe commit or object where the tag will be set. Defaults to the current HEAD
forceForce adding the tag
signMake a GPG-signed tag, using the default e-mail address's key