check that release tag is actually a tag (not a branch) when building cache