Introduce check-for-updates feature.

This commit is contained in:
Fabio Niephaus
2022-11-02 14:00:51 +01:00
parent 70e1936e9c
commit b0049dea1e
12 changed files with 7786 additions and 2935 deletions

View File

@@ -105,7 +105,7 @@ function findJavaHomeInSubfolder(searchPath: string): string {
* semver.org versions (e.g., `22.0.0-2`), which is needed because
* @actions/tool-cache uses `semver` to validate versions.
*/
function toSemVer(version: string): string {
export function toSemVer(version: string): string {
const parts = version.split('.')
const major = parts[0]
const minor = parts.length > 1 ? parts[1] : '0'