I have an issue similar to Cannot get tag when cloning repository for iOS.
I’m using a build process for Android which uses the most recent tag to determine the build number. So when the build runs it should be able to access the tags in the git repo to work correctly.
When the build is triggered by a tag push/creation, the tag is available to the build script and it works correctly. However when the build is triggered by a push or a pull request, no tags are available and it doesn’t work correctly.
Is there a way to force the git clone step to always include tags?