Write a function to get the tag of the previous release