This repository was archived by the owner on May 8, 2024. It is now read-only.

Description
I would like to always have my git tags, so I can use them for things like deploying releases etc. Currently, when my Cirrus CI workflow is not triggered by pushing a tag, no tags are fetched (i.e. git tag -l returns nothing).
I think it's confusing and not documented. For example GitHub's actions/checkout fetches all tags when fetch-depth: 0 is specified. On the other hand, Cirrus CI does not fetch tags at all, even if CIRRUS_CLONE_DEPTH=0 is specified (in fact, it's the default).
Seems like the offending code is:
- here (in case of workflow triggered by a PR)
- here (in case of workflow not triggered by a PR)
Current workaround is to run git fetch --tags as a script step, but this is not ideal since the container/VM might not have git installed. In other words, I want to use Cirrus Agent's builtin go-git.