Skip to content

Latest commit

 

History

History
34 lines (18 loc) · 699 Bytes

File metadata and controls

34 lines (18 loc) · 699 Bytes

@google-github-actions/setup-cloud-sdk


@google-github-actions/setup-cloud-sdk / index / computeBestVersion

Function: 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.

Parameters

spec

string

Version specification

versions

string[]

List of versions

Returns

string

Best version or an error if no matches are found