Correctly find latest tag from repo when there are multiple for same SHA
Correctly find latest tag from repo when there are multiple for same SHA

Signed-off-by: Steve Groeger <229aa7d2f7f880d97ed67c081d457efe75e3c427@uk.ibm.com>

karianna/openjdk-build,AdoptOpenJDK/openjdk-build,AdoptOpenJDK/openjdk-build,karianna/openjdk-build