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
2
3
4
5
6
7
8
9
10
Lane Parameters
| Key | Description |
|---|---|
| tag | Define your own tag text. This will replace all other parameters |
| grouping | Is used to keep your tags organised under one 'folder'. Defaults to 'builds' |
| prefix | Anything you want to put in front of the version number (e.g. 'v') |
| build_number | The build number. Defaults to the result of increment_build_number if you're using it |
| message | The tag message. Defaults to the tag's name |
| commit | The commit or object where the tag will be set. Defaults to the current HEAD |
| force | Force adding the tag |
| sign | Make a GPG-signed tag, using the default e-mail address's key |
