Skip to content

last_git_tag

Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.

Supported Platforms: ios, android, mac

Get the most recent git tag

Details

If you are using this action on a shallow clone, the default with some CI systems like Bamboo, you need to ensure that you have also pulled all the git tags appropriately. Assuming your git repo has the correct remote set you can issue sh('git fetch --tags'). Pattern parameter allows you to filter to a subset of tags.

Parameters & Options

Total options available: 1

Key Type Env Variable Default Required Description
pattern String - - No Pattern to filter tags when looking for last one. Limit tags to ones matching given shell glob. If pattern lacks ?, *, or [, * at the end is implied

Examples

last_git_tag
last_git_tag(pattern: "release/v1.0/")

Source & Upstream