mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 10:26:46 +00:00
Corretto toolcache folder name fix (#480)
This commit is contained in:
parent
404e5db3a1
commit
ddb82ce8a6
7 changed files with 62 additions and 49 deletions
|
@ -2,7 +2,11 @@ import * as core from '@actions/core';
|
|||
import * as tc from '@actions/tool-cache';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import {extractJdkFile, getDownloadArchiveExtension} from '../../util';
|
||||
import {
|
||||
extractJdkFile,
|
||||
getDownloadArchiveExtension,
|
||||
convertVersionToSemver
|
||||
} from '../../util';
|
||||
import {JavaBase} from '../base-installer';
|
||||
import {
|
||||
JavaDownloadRelease,
|
||||
|
@ -62,7 +66,7 @@ export class CorrettoDistribution extends JavaBase {
|
|||
.filter(item => item.version == version)
|
||||
.map(item => {
|
||||
return {
|
||||
version: item.correttoVersion,
|
||||
version: convertVersionToSemver(item.correttoVersion),
|
||||
url: item.downloadLink
|
||||
} as JavaDownloadRelease;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue