@google-github-actions/setup-cloud-sdk
@google-github-actions/setup-cloud-sdk / index / computeBestVersion
computeBestVersion(
spec,versions):string
Defined in: index.ts:321
computeBestVersion computes the latest available version that still satisfies the spec. This is a helper function and is only exported for testing.
string
Version specification
string[]
List of versions
string
Best version or an error if no matches are found