gitHubLatestTag
owner-repo
gitHubLatestTag
calls the GitHub API to retrieve the latest tag for the given
owner-repo, returning structured data as defined by the GitHub Go API
bindings.
Calls to gitHubLatestTag
are cached the same as githubTags
,
so calling gitHubLatestTag
with the same owner-repo will only result in one
call to the GitHub API.
Example
{{ (gitHubLatestTag "docker/compose").Name }}
Warning
The gitHubLatestTag
returns the first tag returned by the list
repository tags GitHub API
endpoint.
Although this seems to be the most recent tag, the GitHub API documentation
does not specify the order of the returned tags.