CI and Shallow Clones
A CI job runs git describe --tags and fails with "No names found", although the repository has many tags. The job uses actions/checkout with default settings. Why?
git describe --tags
actions/checkout
Choose one answer
Tags must be pushed with --follow-tags before CI systems are allowed to see them.
--follow-tags
The checkout is shallow, so there are no tags or history to use.
git describe needs a GPG-signed tag to work.
git describe
CI runners strip tags from repositories for security.