mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00: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
|
@ -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…
Add table
Add a link
Reference in a new issue