mirror of
https://github.com/actions/setup-java.git
synced 2024-11-26 10:21:00 -05:00
Add an error condition for an unstable Microsoft OpenJDK build (#263)
This commit is contained in:
parent
8d22286106
commit
d23aed3c80
2 changed files with 8 additions and 0 deletions
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
|
@ -13886,6 +13886,9 @@ class MicrosoftDistributions extends base_installer_1.JavaBase {
|
|||
if (this.architecture !== 'x64' && this.architecture !== 'aarch64') {
|
||||
throw new Error(`Unsupported architecture: ${this.architecture}`);
|
||||
}
|
||||
if (!this.stable) {
|
||||
throw new Error('Early access versions are not supported');
|
||||
}
|
||||
const availableVersionsRaw = yield this.getAvailableVersions();
|
||||
const opts = this.getPlatformOption();
|
||||
const availableVersions = availableVersionsRaw.map(item => ({
|
||||
|
|
|
@ -40,6 +40,11 @@ export class MicrosoftDistributions extends JavaBase {
|
|||
if (this.architecture !== 'x64' && this.architecture !== 'aarch64') {
|
||||
throw new Error(`Unsupported architecture: ${this.architecture}`);
|
||||
}
|
||||
|
||||
if (!this.stable) {
|
||||
throw new Error('Early access versions are not supported');
|
||||
}
|
||||
|
||||
const availableVersionsRaw = await this.getAvailableVersions();
|
||||
|
||||
const opts = this.getPlatformOption();
|
||||
|
|
Loading…
Reference in a new issue