Also, this would not warn on shallow checkouts (as it does now). Currently it perfectly detects the tag in shallow checkouts (I don't know how universal that statement is, but it works in GitHub Actions). So the use case "Build on version tag no questions asked" could be made more straightforward and more performant on big repos due to shallow nature.
Originally posted by @greatvovan in #1238