fix version

This commit is contained in:
Maxim Lobanov 2021-08-05 19:19:01 +03:00
parent 52d8cfccfd
commit c66bf76555
3 changed files with 9 additions and 3 deletions

View File

@ -154,7 +154,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-latest, windows-latest, ubuntu-latest] os: [macos-latest, windows-latest, ubuntu-latest]
version: ['17-beta'] version: ['17-ea']
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2

5
dist/setup/index.js vendored
View File

@ -39937,8 +39937,11 @@ class TemurinDistribution extends base_installer_1.JavaBase {
const availableVersionsWithBinaries = availableVersionsRaw const availableVersionsWithBinaries = availableVersionsRaw
.filter(item => item.binaries.length > 0) .filter(item => item.binaries.length > 0)
.map(item => { .map(item => {
const formattedVersion = this.stable
? item.version_data.semver
: item.version_data.semver.replace('-beta+', '+');
return { return {
version: item.version_data.semver, version: formattedVersion,
url: item.binaries[0].package.link url: item.binaries[0].package.link
}; };
}); });

View File

@ -27,8 +27,11 @@ export class TemurinDistribution extends JavaBase {
const availableVersionsWithBinaries = availableVersionsRaw const availableVersionsWithBinaries = availableVersionsRaw
.filter(item => item.binaries.length > 0) .filter(item => item.binaries.length > 0)
.map(item => { .map(item => {
const formattedVersion = this.stable
? item.version_data.semver
: item.version_data.semver.replace('-beta+', '+');
return { return {
version: item.version_data.semver, version: formattedVersion,
url: item.binaries[0].package.link url: item.binaries[0].package.link
} as JavaDownloadRelease; } as JavaDownloadRelease;
}); });