does this operate against origin or the local repo?  the last time I wrote one of these I had a step that ran `git fetch --tags` or something to fetch all the tags before examining them.  not sure if that is needed here or not.